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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 | 320 |
321 // Setup the UI specific to managing supervised users. | 321 // Setup the UI specific to managing supervised users. |
322 void SetupManagingSupervisedUsers(); | 322 void SetupManagingSupervisedUsers(); |
323 | 323 |
324 // Setup the UI for Easy Unlock. | 324 // Setup the UI for Easy Unlock. |
325 void SetupEasyUnlock(); | 325 void SetupEasyUnlock(); |
326 | 326 |
327 // Setup the UI for showing which settings are extension controlled. | 327 // Setup the UI for showing which settings are extension controlled. |
328 void SetupExtensionControlledIndicators(); | 328 void SetupExtensionControlledIndicators(); |
329 | 329 |
330 // Setup the value and the disabled property for metrics reporting. | |
331 void SetupMetricsReportingCheckbox(); | |
332 | |
333 // Passes forward the request to change MetricsReportingEnabled. | |
Alexei Svitkine (slow)
2014/09/05 20:50:25
Nit: I suggest using a comment similar to the one
gayane -on leave until 09-2017
2014/09/08 18:32:46
Done.
| |
334 void HandleMetricsReportingChange(const base::ListValue* args); | |
335 | |
336 // Notifies the result of MetricsReportingEnabled change to Javascript layer. | |
337 void MetricsReportingChangeCallback(bool success); | |
338 | |
330 #if defined(OS_CHROMEOS) | 339 #if defined(OS_CHROMEOS) |
331 // Setup the accessibility features for ChromeOS. | 340 // Setup the accessibility features for ChromeOS. |
332 void SetupAccessibilityFeatures(); | 341 void SetupAccessibilityFeatures(); |
333 #endif | 342 #endif |
334 | 343 |
335 // Returns a newly created dictionary with a number of properties that | 344 // Returns a newly created dictionary with a number of properties that |
336 // correspond to the status of sync. | 345 // correspond to the status of sync. |
337 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); | 346 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); |
338 | 347 |
339 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; | 348 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; |
(...skipping 22 matching lines...) Expand all Loading... | |
362 | 371 |
363 // Used to get WeakPtr to self for use on the UI thread. | 372 // Used to get WeakPtr to self for use on the UI thread. |
364 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; | 373 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; |
365 | 374 |
366 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); | 375 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); |
367 }; | 376 }; |
368 | 377 |
369 } // namespace options | 378 } // namespace options |
370 | 379 |
371 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ | 380 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ |
OLD | NEW |