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

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

Issue 1411863002: Use kMetricsReportingEnabled instead of kStatsReporingPref on metrics side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add default value for device setting Created 5 years, 1 month 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
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // Setup the UI specific to managing supervised users. 344 // Setup the UI specific to managing supervised users.
345 void SetupManagingSupervisedUsers(); 345 void SetupManagingSupervisedUsers();
346 346
347 // Setup the UI for Easy Unlock. 347 // Setup the UI for Easy Unlock.
348 void SetupEasyUnlock(); 348 void SetupEasyUnlock();
349 349
350 // Setup the UI for showing which settings are extension controlled. 350 // Setup the UI for showing which settings are extension controlled.
351 void SetupExtensionControlledIndicators(); 351 void SetupExtensionControlledIndicators();
352 352
353 // Setup the value and the disabled property for metrics reporting for (except 353 // Setup the value and the disabled property for metrics reporting for (except
354 // CrOS and Android). 354 // Android).
355 void SetupMetricsReportingCheckbox(); 355 void SetupMetricsReportingCheckbox();
356 356
357 // Called when the MetricsReportingEnabled checkbox values are changed. 357 // Called when the MetricsReportingEnabled checkbox values are changed.
358 // |args| will contain the checkbox checked state as a boolean. 358 // |args| will contain the checkbox checked state as a boolean.
359 void HandleMetricsReportingChange(const base::ListValue* args); 359 void HandleMetricsReportingChange(const base::ListValue* args);
360 360
361 // Notifies the result of MetricsReportingEnabled change to Javascript layer. 361 // Notifies the result of MetricsReportingEnabled change to Javascript layer.
362 void MetricsReportingChangeCallback(bool enabled); 362 void NotifyUIOfMetricsReportingChange(bool enabled);
363 363
364 // Calls a Javascript function to set the state of MetricsReporting checkbox. 364 // Calls a Javascript function to set the state of MetricsReporting checkbox.
365 void SetMetricsReportingCheckbox(bool checked, bool disabled); 365 void SetMetricsReportingCheckbox(bool checked,
366 bool policy_managed,
367 bool owner_managed);
366 368
367 #if defined(OS_CHROMEOS) 369 #if defined(OS_CHROMEOS)
368 // Setup the accessibility features for ChromeOS. 370 // Setup the accessibility features for ChromeOS.
369 void SetupAccessibilityFeatures(); 371 void SetupAccessibilityFeatures();
370 #endif 372 #endif
371 373
372 // Returns a newly created dictionary with a number of properties that 374 // Returns a newly created dictionary with a number of properties that
373 // correspond to the status of sync. 375 // correspond to the status of sync.
374 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary(); 376 scoped_ptr<base::DictionaryValue> GetSyncStateDictionary();
375 377
378 // Checks whether on Chrome OS the current user is the device owner. Returns
379 // true on other platforms.
380 bool IsDeviceOwnerProfile();
381
376 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_; 382 scoped_refptr<ShellIntegration::DefaultBrowserWorker> default_browser_worker_;
377 383
378 bool page_initialized_; 384 bool page_initialized_;
379 385
380 StringPrefMember homepage_; 386 StringPrefMember homepage_;
381 BooleanPrefMember default_browser_policy_; 387 BooleanPrefMember default_browser_policy_;
382 388
383 TemplateURLService* template_url_service_; // Weak. 389 TemplateURLService* template_url_service_; // Weak.
384 390
385 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; 391 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_;
(...skipping 18 matching lines...) Expand all
404 410
405 // Used to get WeakPtr to self for use on the UI thread. 411 // Used to get WeakPtr to self for use on the UI thread.
406 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_; 412 base::WeakPtrFactory<BrowserOptionsHandler> weak_ptr_factory_;
407 413
408 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 414 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
409 }; 415 };
410 416
411 } // namespace options 417 } // namespace options
412 418
413 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 419 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698