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

Side by Side Diff: chrome/common/pref_names.cc

Issue 2849823003: ChromeOS: implement per-user time zone preferences. (Closed)
Patch Set: Rebased. Created 3 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/webui/settings/date_time_page_tests.js » ('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 #include "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/common/features.h" 9 #include "chrome/common/features.h"
10 #include "chrome/common/pref_font_webkit_names.h" 10 #include "chrome/common/pref_font_webkit_names.h"
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 537
538 // A integer pref for the touchpad sensitivity. 538 // A integer pref for the touchpad sensitivity.
539 const char kMouseSensitivity[] = "settings.mouse.sensitivity2"; 539 const char kMouseSensitivity[] = "settings.mouse.sensitivity2";
540 540
541 // A integer pref for the touchpad sensitivity. 541 // A integer pref for the touchpad sensitivity.
542 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2"; 542 const char kTouchpadSensitivity[] = "settings.touchpad.sensitivity2";
543 543
544 // A boolean pref set to true if time should be displayed in 24-hour clock. 544 // A boolean pref set to true if time should be displayed in 24-hour clock.
545 const char kUse24HourClock[] = "settings.clock.use_24hour_clock"; 545 const char kUse24HourClock[] = "settings.clock.use_24hour_clock";
546 546
547 // A string pref containing Timezone ID for this user.
548 const char kUserTimezone[] = "settings.timezone";
549
547 // This setting disables manual timezone selection and starts periodic timezone 550 // This setting disables manual timezone selection and starts periodic timezone
548 // refresh. 551 // refresh.
549 const char kResolveTimezoneByGeolocation[] = 552 const char kResolveTimezoneByGeolocation[] =
550 "settings.resolve_timezone_by_geolocation"; 553 "settings.resolve_timezone_by_geolocation";
551 554
552 // A string pref set to the current input method. 555 // A string pref set to the current input method.
553 const char kLanguageCurrentInputMethod[] = 556 const char kLanguageCurrentInputMethod[] =
554 "settings.language.current_input_method"; 557 "settings.language.current_input_method";
555 558
556 // A string pref set to the previous input method. 559 // A string pref set to the previous input method.
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 // Defaults to false. 2030 // Defaults to false.
2028 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout"; 2031 const char kTabStripStackedLayout[] = "tab-strip-stacked-layout";
2029 2032
2030 // Indicates that factory reset was requested from options page or reset screen. 2033 // Indicates that factory reset was requested from options page or reset screen.
2031 const char kFactoryResetRequested[] = "FactoryResetRequested"; 2034 const char kFactoryResetRequested[] = "FactoryResetRequested";
2032 2035
2033 // Indicates that debugging features were requested from oobe screen. 2036 // Indicates that debugging features were requested from oobe screen.
2034 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested"; 2037 const char kDebuggingFeaturesRequested[] = "DebuggingFeaturesRequested";
2035 2038
2036 #if defined(OS_CHROMEOS) 2039 #if defined(OS_CHROMEOS)
2040 // This setting controls initial device timezone that is used before user
2041 // session started. It is controlled by device owner.
2042 const char kSigninScreenTimezone[] = "settings.signin_screen_timezone";
2043
2037 // This setting starts periodic timezone refresh when not in user session. 2044 // This setting starts periodic timezone refresh when not in user session.
2038 // (user session is controlled by user profile preference 2045 // (user session is controlled by user profile preference
2039 // kResolveTimezoneByGeolocation 2046 // kResolveTimezoneByGeolocation
2040 const char kResolveDeviceTimezoneByGeolocation[] = 2047 const char kResolveDeviceTimezoneByGeolocation[] =
2041 "settings.resolve_device_timezone_by_geolocation"; 2048 "settings.resolve_device_timezone_by_geolocation";
2042 2049
2043 // This is policy-controlled preference. 2050 // This is policy-controlled preference.
2044 // It has values defined in policy enum 2051 // It has values defined in policy enum
2045 // SystemTimezoneAutomaticDetectionProto_AutomaticTimezoneDetectionType; 2052 // SystemTimezoneAutomaticDetectionProto_AutomaticTimezoneDetectionType;
2046 const char kSystemTimezoneAutomaticDetectionPolicy[] = 2053 const char kSystemTimezoneAutomaticDetectionPolicy[] =
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2582 // Accumulated counters of days with specified Chrome usage. When there is 2589 // Accumulated counters of days with specified Chrome usage. When there is
2583 // likely a network connection, these counters are reported via UMA and reset. 2590 // likely a network connection, these counters are reported via UMA and reset.
2584 const char kOfflineUsageUnusedCount[] = "offline_pages.unused_count"; 2591 const char kOfflineUsageUnusedCount[] = "offline_pages.unused_count";
2585 const char kOfflineUsageStartedCount[] = "offline_pages.started_count"; 2592 const char kOfflineUsageStartedCount[] = "offline_pages.started_count";
2586 const char kOfflineUsageOfflineCount[] = "offline_pages.offline_count"; 2593 const char kOfflineUsageOfflineCount[] = "offline_pages.offline_count";
2587 const char kOfflineUsageOnlineCount[] = "offline_pages.online_count"; 2594 const char kOfflineUsageOnlineCount[] = "offline_pages.online_count";
2588 const char kOfflineUsageMixedCount[] = "offline_pages.mixed_count"; 2595 const char kOfflineUsageMixedCount[] = "offline_pages.mixed_count";
2589 #endif 2596 #endif
2590 2597
2591 } // namespace prefs 2598 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/data/webui/settings/date_time_page_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698