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

Side by Side Diff: components/reading_list/reading_list_switches.cc

Issue 2511723002: Enable RL sync by default on iOS (Closed)
Patch Set: rebase Created 4 years 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 | « components/reading_list/reading_list_switches.h ('k') | ios/chrome/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "components/reading_list/reading_list_switches.h"
6
7 #include "base/command_line.h"
8
9 namespace reading_list {
10 namespace switches {
11 // Enables the reading list.
12 const char kEnableReadingList[] = "enable-reading-list";
13
14 // Disables the reading list.
15 const char kDisableReadingList[] = "disable-reading-list";
16
17 bool IsReadingListEnabled() {
18 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableReadingList)) {
19 return true;
20 }
21 return false;
22 }
23 } // namespace switches
24 } // namespace reading_list
OLDNEW
« no previous file with comments | « components/reading_list/reading_list_switches.h ('k') | ios/chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698