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

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

Issue 2514333003: Componentize Reading List (Closed)
Patch Set: fix 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
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 }
sdefresne 2016/11/21 14:48:31 } // namespace switches } // namespace reading_l
Olivier 2016/11/21 15:46:40 Done.
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698