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

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

Issue 498403002: Add an about:flag for enabling a reader mode toolbar icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/chrome_startup_flags.cc » ('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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 SINGLE_VALUE_TYPE(switches::kManualEnhancedBookmarksOptout) 1621 SINGLE_VALUE_TYPE(switches::kManualEnhancedBookmarksOptout)
1622 }, 1622 },
1623 #if defined(OS_ANDROID) 1623 #if defined(OS_ANDROID)
1624 { 1624 {
1625 "enable-zero-suggest-experiment", 1625 "enable-zero-suggest-experiment",
1626 IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_NAME, 1626 IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_NAME,
1627 IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_DESCRIPTION, 1627 IDS_FLAGS_ZERO_SUGGEST_EXPERIMENT_DESCRIPTION,
1628 kOsAndroid, 1628 kOsAndroid,
1629 MULTI_VALUE_TYPE(kZeroSuggestExperimentsChoices) 1629 MULTI_VALUE_TYPE(kZeroSuggestExperimentsChoices)
1630 }, 1630 },
1631 {
1632 "enable-reader-mode-toolbar-icon",
1633 IDS_FLAGS_READER_MODE_EXPERIMENT_NAME,
1634 IDS_FLAGS_READER_MODE_EXPERIMENT_DESCRIPTION,
1635 kOsAndroid,
1636 SINGLE_VALUE_TYPE(switches::kEnableReaderModeToolbarIcon)
1637 },
1631 #endif 1638 #endif
1632 { 1639 {
1633 "num-raster-threads", 1640 "num-raster-threads",
1634 IDS_FLAGS_NUM_RASTER_THREADS_NAME, 1641 IDS_FLAGS_NUM_RASTER_THREADS_NAME,
1635 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION, 1642 IDS_FLAGS_NUM_RASTER_THREADS_DESCRIPTION,
1636 kOsAll, 1643 kOsAll,
1637 MULTI_VALUE_TYPE(kNumRasterThreadsChoices) 1644 MULTI_VALUE_TYPE(kNumRasterThreadsChoices)
1638 }, 1645 },
1639 { 1646 {
1640 "origin-chip-in-omnibox", 1647 "origin-chip-in-omnibox",
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2471 } 2478 }
2472 2479
2473 const Experiment* GetExperiments(size_t* count) { 2480 const Experiment* GetExperiments(size_t* count) {
2474 *count = num_experiments; 2481 *count = num_experiments;
2475 return experiments; 2482 return experiments;
2476 } 2483 }
2477 2484
2478 } // namespace testing 2485 } // namespace testing
2479 2486
2480 } // namespace about_flags 2487 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/android/chrome_startup_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698