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

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: Incorporated Ricardo's comments. 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
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 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 kOsDesktop, 1226 kOsDesktop,
1227 SINGLE_VALUE_TYPE(switches::kAppsDevtool) 1227 SINGLE_VALUE_TYPE(switches::kAppsDevtool)
1228 }, 1228 },
1229 { 1229 {
1230 "impl-side-painting", 1230 "impl-side-painting",
1231 IDS_FLAGS_IMPL_SIDE_PAINTING_NAME, 1231 IDS_FLAGS_IMPL_SIDE_PAINTING_NAME,
1232 IDS_FLAGS_IMPL_SIDE_PAINTING_DESCRIPTION, 1232 IDS_FLAGS_IMPL_SIDE_PAINTING_DESCRIPTION,
1233 kOsAndroid | kOsLinux | kOsCrOS, 1233 kOsAndroid | kOsLinux | kOsCrOS,
1234 MULTI_VALUE_TYPE(kImplSidePaintingChoices) 1234 MULTI_VALUE_TYPE(kImplSidePaintingChoices)
1235 }, 1235 },
1236 {
1237 "enable-offline-mode",
1238 IDS_FLAGS_ENABLE_OFFLINE_MODE_NAME,
1239 IDS_FLAGS_ENABLE_OFFLINE_MODE_DESCRIPTION,
1240 kOsAll,
1241 SINGLE_VALUE_TYPE(switches::kEnableOfflineCacheAccess)
1242 },
1236 // TODO(sky): ifdef needed until focus sorted out in DesktopNativeWidgetAura. 1243 // TODO(sky): ifdef needed until focus sorted out in DesktopNativeWidgetAura.
1237 #if !defined(USE_AURA) 1244 #if !defined(USE_AURA)
1238 { 1245 {
1239 "track-active-visit-time", 1246 "track-active-visit-time",
1240 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_NAME, 1247 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_NAME,
1241 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_DESCRIPTION, 1248 IDS_FLAGS_TRACK_ACTIVE_VISIT_TIME_DESCRIPTION,
1242 kOsWin, 1249 kOsWin,
1243 SINGLE_VALUE_TYPE(switches::kTrackActiveVisitTime) 1250 SINGLE_VALUE_TYPE(switches::kTrackActiveVisitTime)
1244 }, 1251 },
1245 #endif 1252 #endif
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 } 1770 }
1764 1771
1765 const Experiment* GetExperiments(size_t* count) { 1772 const Experiment* GetExperiments(size_t* count) {
1766 *count = num_experiments; 1773 *count = num_experiments;
1767 return experiments; 1774 return experiments;
1768 } 1775 }
1769 1776
1770 } // namespace testing 1777 } // namespace testing
1771 1778
1772 } // namespace about_flags 1779 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698