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

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

Issue 12086021: Allow automatic use of stale cache entries if site is unreachable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed redirect behavior. Created 7 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 | 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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 kOsAll, 1217 kOsAll,
1218 SINGLE_VALUE_TYPE(switches::kEnableDataChannels) 1218 SINGLE_VALUE_TYPE(switches::kEnableDataChannels)
1219 }, 1219 },
1220 { 1220 {
1221 "enable-sync-dictionary", 1221 "enable-sync-dictionary",
1222 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME, 1222 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_NAME,
1223 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION, 1223 IDS_FLAGS_ENABLE_SYNC_DICTIONARY_DESCRIPTION,
1224 kOsWin | kOsCrOS | kOsLinux, 1224 kOsWin | kOsCrOS | kOsLinux,
1225 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary) 1225 SINGLE_VALUE_TYPE(switches::kEnableSyncDictionary)
1226 }, 1226 },
1227 {
1228 "enable-offline-mode",
1229 IDS_FLAGS_ENABLE_OFFLINE_MODE_NAME,
1230 IDS_FLAGS_ENABLE_OFFLINE_MODE_DESCRIPTION,
1231 kOsAll,
1232 SINGLE_VALUE_TYPE(switches::kEnableOfflineCacheAccess)
1233 },
1227 }; 1234 };
1228 1235
1229 const Experiment* experiments = kExperiments; 1236 const Experiment* experiments = kExperiments;
1230 size_t num_experiments = arraysize(kExperiments); 1237 size_t num_experiments = arraysize(kExperiments);
1231 1238
1232 // Stores and encapsulates the little state that about:flags has. 1239 // Stores and encapsulates the little state that about:flags has.
1233 class FlagsState { 1240 class FlagsState {
1234 public: 1241 public:
1235 FlagsState() : needs_restart_(false) {} 1242 FlagsState() : needs_restart_(false) {}
1236 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1243 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 } 1660 }
1654 1661
1655 const Experiment* GetExperiments(size_t* count) { 1662 const Experiment* GetExperiments(size_t* count) {
1656 *count = num_experiments; 1663 *count = num_experiments;
1657 return experiments; 1664 return experiments;
1658 } 1665 }
1659 1666
1660 } // namespace testing 1667 } // namespace testing
1661 1668
1662 } // namespace about_flags 1669 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698