diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-21 19:14:13 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-21 19:14:13 +0000 |
commit | 7a25d87ab53297457f4932ff9d47388045118894 (patch) | |
tree | e6b833cc1a5d360e13b29165f96210beb194585d /chrome/browser/accessibility | |
parent | 85938cb078e8900f0c53bd8d24a76c897376c296 (diff) | |
download | chromium_src-7a25d87ab53297457f4932ff9d47388045118894.zip chromium_src-7a25d87ab53297457f4932ff9d47388045118894.tar.gz chromium_src-7a25d87ab53297457f4932ff9d47388045118894.tar.bz2 |
browser: Split out the prefs registration of invert bubble from views file.
BUG=125846
R=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10387206
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/accessibility')
-rw-r--r-- | chrome/browser/accessibility/invert_bubble_prefs.cc | 18 | ||||
-rw-r--r-- | chrome/browser/accessibility/invert_bubble_prefs.h | 17 | ||||
-rw-r--r-- | chrome/browser/accessibility/invert_bubble_views.cc | 7 |
3 files changed, 35 insertions, 7 deletions
diff --git a/chrome/browser/accessibility/invert_bubble_prefs.cc b/chrome/browser/accessibility/invert_bubble_prefs.cc new file mode 100644 index 0000000..1306966 --- /dev/null +++ b/chrome/browser/accessibility/invert_bubble_prefs.cc @@ -0,0 +1,18 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/accessibility/invert_bubble_prefs.h" + +#include "chrome/browser/prefs/pref_service.h" +#include "chrome/common/pref_names.h" + +namespace browser { + +void RegisterInvertBubbleUserPrefs(PrefService* prefs) { + prefs->RegisterBooleanPref(prefs::kInvertNotificationShown, + false, + PrefService::UNSYNCABLE_PREF); +} + +} // namespace browser diff --git a/chrome/browser/accessibility/invert_bubble_prefs.h b/chrome/browser/accessibility/invert_bubble_prefs.h new file mode 100644 index 0000000..979b123 --- /dev/null +++ b/chrome/browser/accessibility/invert_bubble_prefs.h @@ -0,0 +1,17 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_ACCESSIBILITY_INVERT_BUBBLE_PREFS_H_ +#define CHROME_BROWSER_ACCESSIBILITY_INVERT_BUBBLE_PREFS_H_ +#pragma once + +class PrefService; + +namespace browser { + +void RegisterInvertBubbleUserPrefs(PrefService* prefs); + +} // namespace browser + +#endif // CHROME_BROWSER_ACCESSIBILITY_INVERT_BUBBLE_PREFS_H_ diff --git a/chrome/browser/accessibility/invert_bubble_views.cc b/chrome/browser/accessibility/invert_bubble_views.cc index 9bc1a46..068d508 100644 --- a/chrome/browser/accessibility/invert_bubble_views.cc +++ b/chrome/browser/accessibility/invert_bubble_views.cc @@ -155,13 +155,6 @@ void InvertBubbleView::OpenLink(const std::string& url, int event_flags) { } } -// static -void InvertBubble::RegisterUserPrefs(PrefService* prefs) { - prefs->RegisterBooleanPref(prefs::kInvertNotificationShown, - false, - PrefService::UNSYNCABLE_PREF); -} - void InvertBubble::MaybeShowInvertBubble(Profile* profile, views::View* anchor_view) { PrefService* pref_service = profile->GetPrefs(); |