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

Side by Side Diff: chrome/browser/ui/webui/sync_promo/sync_promo_handler.h

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
7 7
8 #include "chrome/browser/ui/webui/sync_setup_handler.h" 8 #include "chrome/browser/ui/webui/sync_setup_handler.h"
9 9
10 class PrefService; 10 class PrefService;
11 class PrefServiceSyncable;
11 12
12 // The handler for JavaScript messages related to the "sync promo" page. 13 // The handler for JavaScript messages related to the "sync promo" page.
13 class SyncPromoHandler : public SyncSetupHandler { 14 class SyncPromoHandler : public SyncSetupHandler {
14 public: 15 public:
15 explicit SyncPromoHandler(ProfileManager* profile_manager); 16 explicit SyncPromoHandler(ProfileManager* profile_manager);
16 virtual ~SyncPromoHandler(); 17 virtual ~SyncPromoHandler();
17 18
18 // Called to register our preferences before we use them (so there will be a 19 // Called to register our preferences before we use them (so there will be a
19 // default if not present yet). 20 // default if not present yet).
20 static void RegisterUserPrefs(PrefService* prefs); 21 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
21 22
22 // WebUIMessageHandler implementation. 23 // WebUIMessageHandler implementation.
23 virtual void RegisterMessages() OVERRIDE; 24 virtual void RegisterMessages() OVERRIDE;
24 25
25 // Overridden to skip sync settings dialog if user wants to use default 26 // Overridden to skip sync settings dialog if user wants to use default
26 // settings. |show_advanced| is ignored because we never want to display the 27 // settings. |show_advanced| is ignored because we never want to display the
27 // "Sync Everything" dialog for the sync promo. 28 // "Sync Everything" dialog for the sync promo.
28 virtual void DisplayConfigureSync(bool show_advanced, 29 virtual void DisplayConfigureSync(bool show_advanced,
29 bool passphrase_failed) OVERRIDE; 30 bool passphrase_failed) OVERRIDE;
30 31
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 // If the user closes the whole window we'll get a close notification from the 89 // If the user closes the whole window we'll get a close notification from the
89 // tab as well, so this bool acts as a small mutex to only report the close 90 // tab as well, so this bool acts as a small mutex to only report the close
90 // method once. 91 // method once.
91 bool window_already_closed_; 92 bool window_already_closed_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler); 94 DISALLOW_COPY_AND_ASSIGN(SyncPromoHandler);
94 }; 95 };
95 96
96 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_ 97 #endif // CHROME_BROWSER_UI_WEBUI_SYNC_PROMO_SYNC_PROMO_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/sticky_settings.cc ('k') | chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698