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

Side by Side Diff: chrome/browser/bookmarks/bookmark_prompt_prefs.cc

Issue 228393004: Create bookmarks component with names of bookmark preferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add empty line at beginning and end of namespace Created 6 years, 8 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
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/bookmarks/bookmark_prompt_prefs.h" 5 #include "chrome/browser/bookmarks/bookmark_prompt_prefs.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/common/pref_names.h" 8 #include "chrome/common/pref_names.h"
9 #include "components/bookmarks/bookmark_pref_names.h"
9 #include "components/user_prefs/pref_registry_syncable.h" 10 #include "components/user_prefs/pref_registry_syncable.h"
10 11
11 BookmarkPromptPrefs::BookmarkPromptPrefs(PrefService* user_prefs) 12 BookmarkPromptPrefs::BookmarkPromptPrefs(PrefService* user_prefs)
12 : prefs_(user_prefs) { 13 : prefs_(user_prefs) {
13 } 14 }
14 15
15 BookmarkPromptPrefs::~BookmarkPromptPrefs() { 16 BookmarkPromptPrefs::~BookmarkPromptPrefs() {
16 } 17 }
17 18
18 void BookmarkPromptPrefs::DisableBookmarkPrompt() { 19 void BookmarkPromptPrefs::DisableBookmarkPrompt() {
(...skipping 20 matching lines...) Expand all
39 // we may not receive field trial list from the server yet. 40 // we may not receive field trial list from the server yet.
40 registry->RegisterBooleanPref( 41 registry->RegisterBooleanPref(
41 prefs::kBookmarkPromptEnabled, 42 prefs::kBookmarkPromptEnabled,
42 true, 43 true,
43 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 44 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
44 registry->RegisterIntegerPref( 45 registry->RegisterIntegerPref(
45 prefs::kBookmarkPromptImpressionCount, 46 prefs::kBookmarkPromptImpressionCount,
46 0, 47 0,
47 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 48 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
48 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698