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

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

Issue 2961533002: Add "AllArticles" mode to Reader Mode heuristics (Closed)
Patch Set: Revert "exclude ios" Created 3 years, 5 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 | « no previous file | chrome/browser/dom_distiller/distillable_page_utils_browsertest.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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 switches::kReaderModeHeuristics, 332 switches::kReaderModeHeuristics,
333 switches::reader_mode_heuristics::kOGArticle}, 333 switches::reader_mode_heuristics::kOGArticle},
334 {flag_descriptions::kReaderModeHeuristicsAdaboost, 334 {flag_descriptions::kReaderModeHeuristicsAdaboost,
335 switches::kReaderModeHeuristics, 335 switches::kReaderModeHeuristics,
336 switches::reader_mode_heuristics::kAdaBoost}, 336 switches::reader_mode_heuristics::kAdaBoost},
337 {flag_descriptions::kReaderModeHeuristicsAlwaysOn, 337 {flag_descriptions::kReaderModeHeuristicsAlwaysOn,
338 switches::kReaderModeHeuristics, 338 switches::kReaderModeHeuristics,
339 switches::reader_mode_heuristics::kAlwaysTrue}, 339 switches::reader_mode_heuristics::kAlwaysTrue},
340 {flag_descriptions::kReaderModeHeuristicsAlwaysOff, 340 {flag_descriptions::kReaderModeHeuristicsAlwaysOff,
341 switches::kReaderModeHeuristics, switches::reader_mode_heuristics::kNone}, 341 switches::kReaderModeHeuristics, switches::reader_mode_heuristics::kNone},
342 {flag_descriptions::kReaderModeHeuristicsAllArticles,
343 switches::kReaderModeHeuristics,
344 switches::reader_mode_heuristics::kAllArticles},
342 }; 345 };
343 346
344 const FeatureEntry::Choice kChromeHomeSwipeLogicChoices[] = { 347 const FeatureEntry::Choice kChromeHomeSwipeLogicChoices[] = {
345 {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 348 {flags_ui::kGenericExperimentChoiceDefault, "", ""},
346 {flag_descriptions::kChromeHomeSwipeLogicRestrictArea, 349 {flag_descriptions::kChromeHomeSwipeLogicRestrictArea,
347 switches::kChromeHomeSwipeLogicType, "restrict-area"}, 350 switches::kChromeHomeSwipeLogicType, "restrict-area"},
348 {flag_descriptions::kChromeHomeSwipeLogicButtonOnly, 351 {flag_descriptions::kChromeHomeSwipeLogicButtonOnly,
349 switches::kChromeHomeSwipeLogicType, "button-only"}, 352 switches::kChromeHomeSwipeLogicType, "button-only"},
350 }; 353 };
351 354
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3262 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 3265 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
3263 3266
3264 const FeatureEntry* GetFeatureEntries(size_t* count) { 3267 const FeatureEntry* GetFeatureEntries(size_t* count) {
3265 *count = arraysize(kFeatureEntries); 3268 *count = arraysize(kFeatureEntries);
3266 return kFeatureEntries; 3269 return kFeatureEntries;
3267 } 3270 }
3268 3271
3269 } // namespace testing 3272 } // namespace testing
3270 3273
3271 } // namespace about_flags 3274 } // namespace about_flags
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/dom_distiller/distillable_page_utils_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698