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

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

Issue 2068393002: Flag for Offline Page Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 SINGLE_VALUE_TYPE(switches::kEnableTabSwitcherThemeColors)}, 1618 SINGLE_VALUE_TYPE(switches::kEnableTabSwitcherThemeColors)},
1619 #endif // defined(OS_ANDROID) 1619 #endif // defined(OS_ANDROID)
1620 #if defined(OS_ANDROID) 1620 #if defined(OS_ANDROID)
1621 {"offline-bookmarks", IDS_FLAGS_OFFLINE_BOOKMARKS_NAME, 1621 {"offline-bookmarks", IDS_FLAGS_OFFLINE_BOOKMARKS_NAME,
1622 IDS_FLAGS_OFFLINE_BOOKMARKS_DESCRIPTION, kOsAndroid, 1622 IDS_FLAGS_OFFLINE_BOOKMARKS_DESCRIPTION, kOsAndroid,
1623 FEATURE_VALUE_TYPE(offline_pages::kOfflineBookmarksFeature)}, 1623 FEATURE_VALUE_TYPE(offline_pages::kOfflineBookmarksFeature)},
1624 {"offline-pages-background-loading", 1624 {"offline-pages-background-loading",
1625 IDS_FLAGS_OFFLINE_PAGES_BACKGROUND_LOADING_NAME, 1625 IDS_FLAGS_OFFLINE_PAGES_BACKGROUND_LOADING_NAME,
1626 IDS_FLAGS_OFFLINE_PAGES_BACKGROUND_LOADING_DESCRIPTION, kOsAndroid, 1626 IDS_FLAGS_OFFLINE_PAGES_BACKGROUND_LOADING_DESCRIPTION, kOsAndroid,
1627 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesBackgroundLoadingFeature)}, 1627 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesBackgroundLoadingFeature)},
1628 {"offline-pages-sharing",
1629 IDS_FLAGS_OFFLINE_PAGES_SHARING_NAME,
1630 IDS_FLAGS_OFFLINE_PAGES_SHARING_DESCRIPTION, kOsAndroid,
1631 FEATURE_VALUE_TYPE(offline_pages::kOfflinePagesSharingFeature)},
1628 #endif // defined(OS_ANDROID) 1632 #endif // defined(OS_ANDROID)
1629 {"disallow-doc-written-script-loads", 1633 {"disallow-doc-written-script-loads",
1630 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_NAME, 1634 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_NAME,
1631 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_DESCRIPTION, kOsAll, 1635 IDS_FLAGS_DISALLOW_DOC_WRITTEN_SCRIPTS_UI_DESCRIPTION, kOsAll,
1632 // NOTE: if we want to add additional experiment entries for other 1636 // NOTE: if we want to add additional experiment entries for other
1633 // features controlled by kBlinkSettings, we'll need to add logic to 1637 // features controlled by kBlinkSettings, we'll need to add logic to
1634 // merge the flag values. 1638 // merge the flag values.
1635 SINGLE_VALUE_TYPE_AND_VALUE( 1639 SINGLE_VALUE_TYPE_AND_VALUE(
1636 switches::kBlinkSettings, 1640 switches::kBlinkSettings,
1637 "disallowFetchForDocWrittenScriptsInMainFrame=true")}, 1641 "disallowFetchForDocWrittenScriptsInMainFrame=true")},
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2110 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2107 2111
2108 const FeatureEntry* GetFeatureEntries(size_t* count) { 2112 const FeatureEntry* GetFeatureEntries(size_t* count) {
2109 *count = arraysize(kFeatureEntries); 2113 *count = arraysize(kFeatureEntries);
2110 return kFeatureEntries; 2114 return kFeatureEntries;
2111 } 2115 }
2112 2116
2113 } // namespace testing 2117 } // namespace testing
2114 2118
2115 } // namespace about_flags 2119 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698