Chromium Code Reviews| 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 #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/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 const extensions::Extension* extension) override; | 103 const extensions::Extension* extension) override; |
| 104 void OnExtensionUnloaded( | 104 void OnExtensionUnloaded( |
| 105 content::BrowserContext* browser_context, | 105 content::BrowserContext* browser_context, |
| 106 const extensions::Extension* extension, | 106 const extensions::Extension* extension, |
| 107 extensions::UnloadedExtensionInfo::Reason reason) override; | 107 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 108 | 108 |
| 109 // policy::PolicyService::Observer: | 109 // policy::PolicyService::Observer: |
| 110 void OnPolicyUpdated(const policy::PolicyNamespace& ns, | 110 void OnPolicyUpdated(const policy::PolicyNamespace& ns, |
| 111 const policy::PolicyMap& previous, | 111 const policy::PolicyMap& previous, |
| 112 const policy::PolicyMap& current) override; | 112 const policy::PolicyMap& current) override; |
| 113 bool IsMetricsReportingOwnerManaged(); | |
|
Alexei Svitkine (slow)
2015/10/16 21:27:16
This doesn't seem to be an override - if so, it sh
gayane -on leave until 09-2017
2015/10/19 21:32:39
Done.
| |
| 114 | |
| 113 private: | 115 private: |
| 114 // content::NotificationObserver implementation. | 116 // content::NotificationObserver implementation. |
| 115 void Observe(int type, | 117 void Observe(int type, |
| 116 const content::NotificationSource& source, | 118 const content::NotificationSource& source, |
| 117 const content::NotificationDetails& details) override; | 119 const content::NotificationDetails& details) override; |
| 118 | 120 |
| 119 // ProfileInfoCacheObserver implementation. | 121 // ProfileInfoCacheObserver implementation. |
| 120 void OnProfileAdded(const base::FilePath& profile_path) override; | 122 void OnProfileAdded(const base::FilePath& profile_path) override; |
| 121 void OnProfileWasRemoved(const base::FilePath& profile_path, | 123 void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 122 const base::string16& profile_name) override; | 124 const base::string16& profile_name) override; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 372 void SetupMetricsReportingCheckbox(); | 374 void SetupMetricsReportingCheckbox(); |
| 373 | 375 |
| 374 // Called when the MetricsReportingEnabled checkbox values are changed. | 376 // Called when the MetricsReportingEnabled checkbox values are changed. |
| 375 // |args| will contain the checkbox checked state as a boolean. | 377 // |args| will contain the checkbox checked state as a boolean. |
| 376 void HandleMetricsReportingChange(const base::ListValue* args); | 378 void HandleMetricsReportingChange(const base::ListValue* args); |
| 377 | 379 |
| 378 // Notifies the result of MetricsReportingEnabled change to Javascript layer. | 380 // Notifies the result of MetricsReportingEnabled change to Javascript layer. |
| 379 void MetricsReportingChangeCallback(bool enabled); | 381 void MetricsReportingChangeCallback(bool enabled); |
| 380 | 382 |
| 381 // Calls a Javascript function to set the state of MetricsReporting checkbox. | 383 // Calls a Javascript function to set the state of MetricsReporting checkbox. |
| 382 void SetMetricsReportingCheckbox(bool checked, bool disabled); | 384 void SetMetricsReportingCheckbox(bool checked, |
| 385 bool policy_managed, | |
| 386 bool owner_managed); | |
| 383 | 387 |
| 384 #if defined(OS_CHROMEOS) | 388 #if defined(OS_CHROMEOS) |
| 385 // Setup the accessibility features for ChromeOS. | 389 // Setup the accessibility features for ChromeOS. |
| 386 void SetupAccessibilityFeatures(); | 390 void SetupAccessibilityFeatures(); |
| 387 #endif | 391 #endif |
| 388 | 392 |
| 389 // Returns a newly created dictionary with a number of properties that | 393 // Returns a newly created dictionary with a number of properties that |
| 390 // correspond to the status of sync. | 394 // correspond to the status of sync. |
| 391 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); | 395 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); |
| 392 | 396 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 418 | 422 |
| 419 // Used to get WeakPtr to self for use on the UI thread. | 423 // Used to get WeakPtr to self for use on the UI thread. |
| 420 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 424 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
| 421 | 425 |
| 422 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 426 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
| 423 }; | 427 }; |
| 424 | 428 |
| 425 } // namespace options | 429 } // namespace options |
| 426 | 430 |
| 427 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 431 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
| OLD | NEW |