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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 834073002: ChromeOS: Implement periodic timezone refresh on geolocation data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 5 years, 11 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
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/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 2078 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 kOsAndroid, 2089 kOsAndroid,
2090 SINGLE_VALUE_TYPE("enable-touch-hover") 2090 SINGLE_VALUE_TYPE("enable-touch-hover")
2091 }, 2091 },
2092 { 2092 {
2093 "enable-fill-on-account-select", 2093 "enable-fill-on-account-select",
2094 IDS_FILL_ON_ACCOUNT_SELECT_NAME, 2094 IDS_FILL_ON_ACCOUNT_SELECT_NAME,
2095 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, 2095 IDS_FILL_ON_ACCOUNT_SELECT_DESCRIPTION,
2096 kOsAll, 2096 kOsAll,
2097 MULTI_VALUE_TYPE(kFillOnAccountSelectChoices) 2097 MULTI_VALUE_TYPE(kFillOnAccountSelectChoices)
2098 }, 2098 },
2099 #if defined(OS_CHROMEOS)
2100 {
2101 "enable-timezone-tracking",
2102 IDS_FLAGS_ENABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_NAME,
2103 IDS_FLAGS_ENABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_DESCRIPTION,
2104 kOsCrOS,
2105 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTimeZoneTrackingOption)
2106 },
2107 #endif // defined(OS_CHROMEOS)
2108
2099 2109
2100 // NOTE: Adding new command-line switches requires adding corresponding 2110 // NOTE: Adding new command-line switches requires adding corresponding
2101 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2111 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2102 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2112 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2103 }; 2113 };
2104 2114
2105 const Experiment* experiments = kExperiments; 2115 const Experiment* experiments = kExperiments;
2106 size_t num_experiments = arraysize(kExperiments); 2116 size_t num_experiments = arraysize(kExperiments);
2107 2117
2108 // Stores and encapsulates the little state that about:flags has. 2118 // Stores and encapsulates the little state that about:flags has.
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2668 } 2678 }
2669 2679
2670 const Experiment* GetExperiments(size_t* count) { 2680 const Experiment* GetExperiments(size_t* count) {
2671 *count = num_experiments; 2681 *count = num_experiments;
2672 return experiments; 2682 return experiments;
2673 } 2683 }
2674 2684
2675 } // namespace testing 2685 } // namespace testing
2676 2686
2677 } // namespace about_flags 2687 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698