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

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

Issue 229533002: App install alerts: Disable on all channels for M35 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
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 <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock) 1820 SINGLE_VALUE_TYPE(switches::kEnableEasyUnlock)
1821 }, 1821 },
1822 #endif 1822 #endif
1823 { 1823 {
1824 "enable-embedded-shared-worker", 1824 "enable-embedded-shared-worker",
1825 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME, 1825 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_NAME,
1826 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION, 1826 IDS_FLAGS_ENABLE_EMBEDDED_SHARED_WORKER_DESCRIPTION,
1827 kOsDesktop, 1827 kOsDesktop,
1828 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker) 1828 SINGLE_VALUE_TYPE(switches::kEnableEmbeddedSharedWorker)
1829 }, 1829 },
1830 #if defined(OS_ANDROID)
1831 {
1832 "enable-app-install-alerts",
1833 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_NAME,
1834 IDS_FLAGS_ENABLE_APP_INSTALL_ALERTS_DESCRIPTION,
1835 kOsAndroid,
1836 SINGLE_VALUE_TYPE(switches::kEnableAppInstallAlerts)
1837 }
1838 #endif
1830 }; 1839 };
1831 1840
1832 const Experiment* experiments = kExperiments; 1841 const Experiment* experiments = kExperiments;
1833 size_t num_experiments = arraysize(kExperiments); 1842 size_t num_experiments = arraysize(kExperiments);
1834 1843
1835 // Stores and encapsulates the little state that about:flags has. 1844 // Stores and encapsulates the little state that about:flags has.
1836 class FlagsState { 1845 class FlagsState {
1837 public: 1846 public:
1838 FlagsState() : needs_restart_(false) {} 1847 FlagsState() : needs_restart_(false) {}
1839 void ConvertFlagsToSwitches(FlagsStorage* flags_storage, 1848 void ConvertFlagsToSwitches(FlagsStorage* flags_storage,
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2344 } 2353 }
2345 2354
2346 const Experiment* GetExperiments(size_t* count) { 2355 const Experiment* GetExperiments(size_t* count) {
2347 *count = num_experiments; 2356 *count = num_experiments;
2348 return experiments; 2357 return experiments;
2349 } 2358 }
2350 2359
2351 } // namespace testing 2360 } // namespace testing
2352 2361
2353 } // namespace about_flags 2362 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698