Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: chrome/browser/ui/ash/chrome_launcher_prefs.cc

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" 5 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/prefs/pref_registry_syncable.h"
11 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "components/user_prefs/pref_registry_syncable.h"
12 12
13 namespace { 13 namespace {
14 14
15 // App ID of default pinned apps. 15 // App ID of default pinned apps.
16 const char* kDefaultPinnedApps[] = { 16 const char* kDefaultPinnedApps[] = {
17 "pjkljhegncpnkpknbcohdijeoejaedia", // Gmail 17 "pjkljhegncpnkpknbcohdijeoejaedia", // Gmail
18 "coobgpohoikkiipiblmjeljniedjpjpf", // Search 18 "coobgpohoikkiipiblmjeljniedjpjpf", // Search
19 "apdfllckaahabafndbhieahigkjlhalf", // Doc 19 "apdfllckaahabafndbhieahigkjlhalf", // Doc
20 "blpcfgokakmgnkcojhhkbfbldkacnbeo", // YouTube 20 "blpcfgokakmgnkcojhhkbfbldkacnbeo", // YouTube
21 }; 21 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 PrefRegistrySyncable::UNSYNCABLE_PREF); 67 PrefRegistrySyncable::UNSYNCABLE_PREF);
68 } 68 }
69 69
70 base::DictionaryValue* CreateAppDict(const std::string& app_id) { 70 base::DictionaryValue* CreateAppDict(const std::string& app_id) {
71 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue); 71 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue);
72 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id); 72 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id);
73 return app_value.release(); 73 return app_value.release();
74 } 74 }
75 75
76 } // namespace ash 76 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698