1010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved.
2010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
3010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// found in the LICENSE file.
4010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
5010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#ifndef CHROME_BROWSER_SEARCH_ENGINES_DEFAULT_SEARCH_PREF_MIGRATION_H_
6010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#define CHROME_BROWSER_SEARCH_ENGINES_DEFAULT_SEARCH_PREF_MIGRATION_H_
7010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
8010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)class PrefService;
9010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
10010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Migrates a DSE value stored in separate String/List/..Value preferences by
11010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// M35 or earlier to the new single DictionaryValue used in M36.
12010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// Operates immediately if |pref_service| is fully initialized. Otherwise, waits
13010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)// for the PrefService to load using an observer.
14010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)void ConfigureDefaultSearchPrefMigrationToDictionaryValue(
15010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)    PrefService* pref_service);
16010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)
17010d83a9304c5a91596085d917d248abff47903aTorne (Richard Coles)#endif  // CHROME_BROWSER_SEARCH_ENGINES_DEFAULT_SEARCH_PREF_MIGRATION_H_
18