OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |