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

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

Issue 1278593004: Introduce ThreadedInputConnection behind a switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handles render crash and navigation Created 4 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 2121 matching lines...) Expand 10 before | Expand all | Expand 10 after
2132 {"enable-webfonts-intervention", 2132 {"enable-webfonts-intervention",
2133 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME, 2133 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_NAME,
2134 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION, 2134 IDS_FLAGS_ENABLE_WEBFONTS_INTERVENTION_DESCRIPTION,
2135 kOsAll, 2135 kOsAll,
2136 FEATURE_VALUE_TYPE(features::kWebFontsIntervention)}, 2136 FEATURE_VALUE_TYPE(features::kWebFontsIntervention)},
2137 {"enable-grouped-history", 2137 {"enable-grouped-history",
2138 IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME, 2138 IDS_FLAGS_ENABLE_GROUPED_HISTORY_NAME,
2139 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION, 2139 IDS_FLAGS_ENABLE_GROUPED_HISTORY_DESCRIPTION,
2140 kOsDesktop, 2140 kOsDesktop,
2141 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)}, 2141 SINGLE_VALUE_TYPE(switches::kHistoryEnableGroupByDomain)},
2142 #if defined(OS_ANDROID)
2143 {"use-ime-thread", IDS_FLAGS_USE_IME_THREAD_NAME,
2144 IDS_FLAGS_USE_IME_THREAD_DESCRIPTION, kOsAndroid,
2145 SINGLE_VALUE_TYPE(switches::kUseImeThread)},
2146 #endif // defined(OS_ANDROID)
2142 // NOTE: Adding new command-line switches requires adding corresponding 2147 // NOTE: Adding new command-line switches requires adding corresponding
2143 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2148 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2144 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2149 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2145 }; 2150 };
2146 2151
2147 class FlagsStateSingleton { 2152 class FlagsStateSingleton {
2148 public: 2153 public:
2149 FlagsStateSingleton() 2154 FlagsStateSingleton()
2150 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2155 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2151 ~FlagsStateSingleton() {} 2156 ~FlagsStateSingleton() {}
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2345 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2350 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2346 2351
2347 const FeatureEntry* GetFeatureEntries(size_t* count) { 2352 const FeatureEntry* GetFeatureEntries(size_t* count) {
2348 *count = arraysize(kFeatureEntries); 2353 *count = arraysize(kFeatureEntries);
2349 return kFeatureEntries; 2354 return kFeatureEntries;
2350 } 2355 }
2351 2356
2352 } // namespace testing 2357 } // namespace testing
2353 2358
2354 } // namespace about_flags 2359 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698