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

Side by Side Diff: chrome/browser/ui/webui/flags_ui.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 #ifndef CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
11 11
12 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
13 #include "chrome/browser/chromeos/settings/device_settings_service.h" 13 #include "chrome/browser/chromeos/settings/device_settings_service.h"
14 #endif 14 #endif
15 15
16 class PrefRegistrySimple; 16 class PrefRegistrySimple;
17 class PrefRegistrySyncable;
18 class Profile; 17 class Profile;
19 18
20 namespace base { 19 namespace base {
21 class RefCountedMemory; 20 class RefCountedMemory;
22 } 21 }
23 22
23 namespace user_prefs {
24 class PrefRegistrySyncable;
25 }
26
24 class FlagsUI : public content::WebUIController { 27 class FlagsUI : public content::WebUIController {
25 public: 28 public:
26 explicit FlagsUI(content::WebUI* web_ui); 29 explicit FlagsUI(content::WebUI* web_ui);
27 virtual ~FlagsUI(); 30 virtual ~FlagsUI();
28 31
29 static base::RefCountedMemory* GetFaviconResourceBytes( 32 static base::RefCountedMemory* GetFaviconResourceBytes(
30 ui::ScaleFactor scale_factor); 33 ui::ScaleFactor scale_factor);
31 static void RegisterPrefs(PrefRegistrySimple* registry); 34 static void RegisterPrefs(PrefRegistrySimple* registry);
32 #if defined(OS_CHROMEOS) 35 #if defined(OS_CHROMEOS)
33 static void RegisterUserPrefs(PrefRegistrySyncable* registry); 36 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
34 #endif 37 #endif
35 38
36 private: 39 private:
37 #if defined(OS_CHROMEOS) 40 #if defined(OS_CHROMEOS)
38 // On ChromeOS verifying if the owner is signed in is async operation and only 41 // On ChromeOS verifying if the owner is signed in is async operation and only
39 // after finishing it the UI can be properly populated. This function is the 42 // after finishing it the UI can be properly populated. This function is the
40 // callback for whether the owner is signed in. It will respectively pick the 43 // callback for whether the owner is signed in. It will respectively pick the
41 // proper PrefService for the flags interface. 44 // proper PrefService for the flags interface.
42 void FinishInitialization( 45 void FinishInitialization(
43 Profile* profile, 46 Profile* profile,
44 chromeos::DeviceSettingsService::OwnershipStatus status, 47 chromeos::DeviceSettingsService::OwnershipStatus status,
45 bool current_user_is_owner); 48 bool current_user_is_owner);
46 #endif 49 #endif
47 base::WeakPtrFactory<FlagsUI> weak_factory_; 50 base::WeakPtrFactory<FlagsUI> weak_factory_;
48 51
49 DISALLOW_COPY_AND_ASSIGN(FlagsUI); 52 DISALLOW_COPY_AND_ASSIGN(FlagsUI);
50 }; 53 };
51 54
52 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 55 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | chrome/browser/ui/webui/flags_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698