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

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: Fix rebase. Created 5 years, 10 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 2134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2145 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices) 2145 MULTI_VALUE_TYPE(kMarkNonSecureAsChoices)
2146 }, 2146 },
2147 2147
2148 { 2148 {
2149 "enable-site-per-process", 2149 "enable-site-per-process",
2150 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_NAME, 2150 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_NAME,
2151 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_DESCRIPTION, 2151 IDS_FLAGS_ENABLE_SITE_PER_PROCESS_DESCRIPTION,
2152 kOsAll, 2152 kOsAll,
2153 SINGLE_VALUE_TYPE(switches::kSitePerProcess) 2153 SINGLE_VALUE_TYPE(switches::kSitePerProcess)
2154 }, 2154 },
2155 #if defined(OS_CHROMEOS)
2156 {
2157 "enable-timezone-tracking",
2158 IDS_FLAGS_ENABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_NAME,
2159 IDS_FLAGS_ENABLE_RESOLVE_TIMEZONE_BY_GEOLOCATION_DESCRIPTION,
2160 kOsCrOS,
2161 SINGLE_VALUE_TYPE(chromeos::switches::kEnableTimeZoneTrackingOption)
2162 },
2163 #endif // defined(OS_CHROMEOS)
2155 2164
2156 // NOTE: Adding new command-line switches requires adding corresponding 2165 // NOTE: Adding new command-line switches requires adding corresponding
2157 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2166 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2158 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2167 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2159 }; 2168 };
2160 2169
2161 const Experiment* experiments = kExperiments; 2170 const Experiment* experiments = kExperiments;
2162 size_t num_experiments = arraysize(kExperiments); 2171 size_t num_experiments = arraysize(kExperiments);
2163 2172
2164 // Stores and encapsulates the little state that about:flags has. 2173 // Stores and encapsulates the little state that about:flags has.
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
2724 } 2733 }
2725 2734
2726 const Experiment* GetExperiments(size_t* count) { 2735 const Experiment* GetExperiments(size_t* count) {
2727 *count = num_experiments; 2736 *count = num_experiments;
2728 return experiments; 2737 return experiments;
2729 } 2738 }
2730 2739
2731 } // namespace testing 2740 } // namespace testing
2732 2741
2733 } // namespace about_flags 2742 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/browser_process_platform_part_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698