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

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

Issue 1750883002: Add enable-offlining-recent-pages feature switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build break Created 4 years, 9 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 25 matching lines...) Expand all
36 #include "components/autofill/core/common/autofill_switches.h" 36 #include "components/autofill/core/common/autofill_switches.h"
37 #include "components/browser_sync/common/browser_sync_switches.h" 37 #include "components/browser_sync/common/browser_sync_switches.h"
38 #include "components/cloud_devices/common/cloud_devices_switches.h" 38 #include "components/cloud_devices/common/cloud_devices_switches.h"
39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 39 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
40 #include "components/dom_distiller/core/dom_distiller_switches.h" 40 #include "components/dom_distiller/core/dom_distiller_switches.h"
41 #include "components/error_page/common/error_page_switches.h" 41 #include "components/error_page/common/error_page_switches.h"
42 #include "components/flags_ui/feature_entry_macros.h" 42 #include "components/flags_ui/feature_entry_macros.h"
43 #include "components/flags_ui/flags_storage.h" 43 #include "components/flags_ui/flags_storage.h"
44 #include "components/flags_ui/flags_ui_switches.h" 44 #include "components/flags_ui/flags_ui_switches.h"
45 #include "components/nacl/common/nacl_switches.h" 45 #include "components/nacl/common/nacl_switches.h"
46 #include "components/offline_pages/offline_page_feature.h"
46 #include "components/offline_pages/offline_page_switches.h" 47 #include "components/offline_pages/offline_page_switches.h"
47 #include "components/omnibox/browser/omnibox_switches.h" 48 #include "components/omnibox/browser/omnibox_switches.h"
48 #include "components/password_manager/core/common/password_manager_features.h" 49 #include "components/password_manager/core/common/password_manager_features.h"
49 #include "components/password_manager/core/common/password_manager_switches.h" 50 #include "components/password_manager/core/common/password_manager_switches.h"
50 #include "components/proximity_auth/switches.h" 51 #include "components/proximity_auth/switches.h"
51 #include "components/search/search_switches.h" 52 #include "components/search/search_switches.h"
52 #include "components/security_state/switches.h" 53 #include "components/security_state/switches.h"
53 #include "components/signin/core/common/signin_switches.h" 54 #include "components/signin/core/common/signin_switches.h"
54 #include "components/sync_driver/sync_driver_switches.h" 55 #include "components/sync_driver/sync_driver_switches.h"
55 #include "components/tracing/tracing_switches.h" 56 #include "components/tracing/tracing_switches.h"
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1792 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME, 1793 {"enable-ntp-snippets", IDS_FLAGS_ENABLE_NTP_SNIPPETS_NAME,
1793 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid, 1794 IDS_FLAGS_ENABLE_NTP_SNIPPETS_DESCRIPTION, kOsAndroid,
1794 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)}, 1795 FEATURE_VALUE_TYPE(chrome::android::kNTPSnippetsFeature)},
1795 #endif // defined(OS_ANDROID) 1796 #endif // defined(OS_ANDROID)
1796 #if defined(OS_ANDROID) 1797 #if defined(OS_ANDROID)
1797 {"ime-thread", IDS_FLAGS_IME_THREAD_NAME, 1798 {"ime-thread", IDS_FLAGS_IME_THREAD_NAME,
1798 IDS_FLAGS_IME_THREAD_DESCRIPTION, kOsAndroid, 1799 IDS_FLAGS_IME_THREAD_DESCRIPTION, kOsAndroid,
1799 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableImeThread, 1800 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableImeThread,
1800 switches::kDisableImeThread)}, 1801 switches::kDisableImeThread)},
1801 #endif // defined(OS_ANDROID) 1802 #endif // defined(OS_ANDROID)
1803 #if defined(OS_ANDROID)
1804 {"offlining-recent-pages", IDS_FLAGS_OFFLINING_RECENT_PAGES_NAME,
jianli 2016/03/08 00:48:57 Do we still need this?
Dmitry Titov 2016/03/08 01:08:24 I think so - that's what creates the entries in ch
1805 IDS_FLAGS_OFFLINING_RECENT_PAGES_DESCRIPTION, kOsAndroid,
1806 FEATURE_VALUE_TYPE(offline_pages::kOffliningRecentPagesFeature)},
1807 #endif // defined(OS_ANDROID)
1808
1802 // NOTE: Adding new command-line switches requires adding corresponding 1809 // NOTE: Adding new command-line switches requires adding corresponding
1803 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 1810 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
1804 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 1811 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
1805 }; 1812 };
1806 1813
1807 class FlagsStateSingleton { 1814 class FlagsStateSingleton {
1808 public: 1815 public:
1809 FlagsStateSingleton() 1816 FlagsStateSingleton()
1810 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 1817 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
1811 ~FlagsStateSingleton() {} 1818 ~FlagsStateSingleton() {}
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2008 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2002 2009
2003 const FeatureEntry* GetFeatureEntries(size_t* count) { 2010 const FeatureEntry* GetFeatureEntries(size_t* count) {
2004 *count = arraysize(kFeatureEntries); 2011 *count = arraysize(kFeatureEntries);
2005 return kFeatureEntries; 2012 return kFeatureEntries;
2006 } 2013 }
2007 2014
2008 } // namespace testing 2015 } // namespace testing
2009 2016
2010 } // namespace about_flags 2017 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698