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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 22216002: Don't update profile information when the sync state changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // OptionsPageUIHandler implementation. 52 // OptionsPageUIHandler implementation.
53 virtual void GetLocalizedValues(DictionaryValue* values) OVERRIDE; 53 virtual void GetLocalizedValues(DictionaryValue* values) OVERRIDE;
54 virtual void PageLoadStarted() OVERRIDE; 54 virtual void PageLoadStarted() OVERRIDE;
55 virtual void InitializeHandler() OVERRIDE; 55 virtual void InitializeHandler() OVERRIDE;
56 virtual void InitializePage() OVERRIDE; 56 virtual void InitializePage() OVERRIDE;
57 virtual void RegisterMessages() OVERRIDE; 57 virtual void RegisterMessages() OVERRIDE;
58 58
59 // ProfileSyncServiceObserver implementation. 59 // ProfileSyncServiceObserver implementation.
60 virtual void OnStateChanged() OVERRIDE; 60 virtual void OnStateChanged() OVERRIDE;
61 61
62 // Will be called when the kSigninAllowed pref has changed.
63 void OnSigninAllowedPrefChange();
64
65 // Called whenever prefs::kSearchSuggestEnabled or the default search engine
66 // changes, so that we can update the state of the Instant pref checkbox.
67 void UpdateInstantCheckboxState();
68
69 // ShellIntegration::DefaultWebClientObserver implementation. 62 // ShellIntegration::DefaultWebClientObserver implementation.
70 virtual void SetDefaultWebClientUIState( 63 virtual void SetDefaultWebClientUIState(
71 ShellIntegration::DefaultWebClientUIState state) OVERRIDE; 64 ShellIntegration::DefaultWebClientUIState state) OVERRIDE;
72 virtual bool IsInteractiveSetDefaultPermitted() OVERRIDE; 65 virtual bool IsInteractiveSetDefaultPermitted() OVERRIDE;
73 66
74 // TemplateURLServiceObserver implementation. 67 // TemplateURLServiceObserver implementation.
75 virtual void OnTemplateURLServiceChanged() OVERRIDE; 68 virtual void OnTemplateURLServiceChanged() OVERRIDE;
76 69
77 private: 70 private:
78 // content::NotificationObserver implementation. 71 // content::NotificationObserver implementation.
79 virtual void Observe(int type, 72 virtual void Observe(int type,
80 const content::NotificationSource& source, 73 const content::NotificationSource& source,
81 const content::NotificationDetails& details) OVERRIDE; 74 const content::NotificationDetails& details) OVERRIDE;
82 75
83 void OnCloudPrintPrefsChanged(); 76 void OnCloudPrintPrefsChanged();
84 77
85 // SelectFileDialog::Listener implementation 78 // SelectFileDialog::Listener implementation
86 virtual void FileSelected(const base::FilePath& path, 79 virtual void FileSelected(const base::FilePath& path,
87 int index, 80 int index,
88 void* params) OVERRIDE; 81 void* params) OVERRIDE;
89 82
90 #if defined(OS_CHROMEOS) 83 #if defined(OS_CHROMEOS)
91 // PointerDeviceObserver::Observer implementation. 84 // PointerDeviceObserver::Observer implementation.
92 virtual void TouchpadExists(bool exists) OVERRIDE; 85 virtual void TouchpadExists(bool exists) OVERRIDE;
93 virtual void MouseExists(bool exists) OVERRIDE; 86 virtual void MouseExists(bool exists) OVERRIDE;
94 #endif 87 #endif
95 88
89 void UpdateSyncState();
90
91 // Will be called when the kSigninAllowed pref has changed.
92 void OnSigninAllowedPrefChange();
93
96 // Makes this the default browser. Called from WebUI. 94 // Makes this the default browser. Called from WebUI.
97 void BecomeDefaultBrowser(const base::ListValue* args); 95 void BecomeDefaultBrowser(const base::ListValue* args);
98 96
99 // Sets the search engine at the given index to be default. Called from WebUI. 97 // Sets the search engine at the given index to be default. Called from WebUI.
100 void SetDefaultSearchEngine(const base::ListValue* args); 98 void SetDefaultSearchEngine(const base::ListValue* args);
101 99
102 // Enables/disables auto-launching of Chrome on computer startup. 100 // Enables/disables auto-launching of Chrome on computer startup.
103 void ToggleAutoLaunch(const base::ListValue* args); 101 void ToggleAutoLaunch(const base::ListValue* args);
104 102
105 // Checks (on the file thread) whether the user is in the auto-launch trial 103 // Checks (on the file thread) whether the user is in the auto-launch trial
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 PrefChangeRegistrar profile_pref_registrar_; 345 PrefChangeRegistrar profile_pref_registrar_;
348 346
349 scoped_ptr<ManagedUserRegistrationUtility> managed_user_registration_utility_; 347 scoped_ptr<ManagedUserRegistrationUtility> managed_user_registration_utility_;
350 348
351 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 349 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
352 }; 350 };
353 351
354 } // namespace options 352 } // namespace options
355 353
356 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 354 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698