| 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 "chrome/browser/prefs/pref_registry_syncable.h" | 8 #include "chrome/browser/prefs/pref_registry_syncable.h" |
| 8 #include "chrome/browser/prefs/pref_service.h" | |
| 9 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 10 | 10 |
| 11 BookmarkPromptPrefs::BookmarkPromptPrefs(PrefServiceBase* user_prefs) | 11 BookmarkPromptPrefs::BookmarkPromptPrefs(PrefServiceBase* user_prefs) |
| 12 : prefs_(user_prefs) { | 12 : prefs_(user_prefs) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 BookmarkPromptPrefs::~BookmarkPromptPrefs() { | 15 BookmarkPromptPrefs::~BookmarkPromptPrefs() { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void BookmarkPromptPrefs::DisableBookmarkPrompt() { | 18 void BookmarkPromptPrefs::DisableBookmarkPrompt() { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // static | 35 // static |
| 36 void BookmarkPromptPrefs::RegisterUserPrefs(PrefRegistrySyncable* registry) { | 36 void BookmarkPromptPrefs::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
| 37 // We always register preferences without checking FieldTrial, because | 37 // We always register preferences without checking FieldTrial, because |
| 38 // we may not receive field trial list from the server yet. | 38 // we may not receive field trial list from the server yet. |
| 39 registry->RegisterBooleanPref(prefs::kBookmarkPromptEnabled, true, | 39 registry->RegisterBooleanPref(prefs::kBookmarkPromptEnabled, true, |
| 40 PrefRegistrySyncable::UNSYNCABLE_PREF); | 40 PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 41 registry->RegisterIntegerPref(prefs::kBookmarkPromptImpressionCount, 0, | 41 registry->RegisterIntegerPref(prefs::kBookmarkPromptImpressionCount, 0, |
| 42 PrefRegistrySyncable::UNSYNCABLE_PREF); | 42 PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 43 } | 43 } |
| OLD | NEW |