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

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

Issue 12886022: Implement offline mode behind a flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Setup OfflinePolicy for all started requests. Created 7 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/loader/global_routing_id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 kOsAll, 1276 kOsAll,
1277 SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebSocket) 1277 SINGLE_VALUE_TYPE(switches::kEnableExperimentalWebSocket)
1278 }, 1278 },
1279 { 1279 {
1280 "max-tiles-for-interest-area", 1280 "max-tiles-for-interest-area",
1281 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_NAME, 1281 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_NAME,
1282 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_DESCRIPTION, 1282 IDS_FLAGS_MAX_TILES_FOR_INTEREST_AREA_DESCRIPTION,
1283 kOsAndroid | kOsLinux | kOsCrOS, 1283 kOsAndroid | kOsLinux | kOsCrOS,
1284 MULTI_VALUE_TYPE(kMaxTilesForInterestAreaChoices) 1284 MULTI_VALUE_TYPE(kMaxTilesForInterestAreaChoices)
1285 }, 1285 },
1286 {
1287 "enable-offline-mode",
1288 IDS_FLAGS_ENABLE_OFFLINE_MODE_NAME,
1289 IDS_FLAGS_ENABLE_OFFLINE_MODE_DESCRIPTION,
1290 kOsAll,
1291 SINGLE_VALUE_TYPE(switches::kEnableOfflineCacheAccess)
1292 },
1286 // TODO(sky): ifdef needed until focus sorted out in DesktopNativeWidgetAura. 1293 // TODO(sky): ifdef needed until focus sorted out in DesktopNativeWidgetAura.
1287 #if !defined(USE_AURA) 1294 #if !defined(USE_AURA)
1288 { 1295 {
1289 "track-active-visit-time", 1296 "track-active-visit-time",
1290 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_NAME, 1297 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_NAME,
1291 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_DESCRIPTION, 1298 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_DESCRIPTION,
1292 kOsWin, 1299 kOsWin,
1293 SINGLE_VALUE_TYPE(switches::kTrackActiveVisitTime) 1300 SINGLE_VALUE_TYPE(switches::kTrackActiveVisitTime)
1294 }, 1301 },
1295 #endif 1302 #endif
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1859 } 1866 }
1860 1867
1861 const Experiment* GetExperiments(size_t* count) { 1868 const Experiment* GetExperiments(size_t* count) {
1862 *count = num_experiments; 1869 *count = num_experiments;
1863 return experiments; 1870 return experiments;
1864 } 1871 }
1865 1872
1866 } // namespace testing 1873 } // namespace testing
1867 1874
1868 } // namespace about_flags 1875 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/loader/global_routing_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698