Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 import("//build/buildflag_header.gni") | |
| 6 import("//components/reading_list/core/reading_list.gni") | |
| 7 | |
| 8 buildflag_header("enable_flags") { | |
| 9 header = "reading_list_enable_flags.h" | |
| 10 header_dir = "components/reading_list/core" | |
|
sdefresne
2016/12/09 15:37:15
nit: I think you can remove this as it is the defa
Olivier
2016/12/09 15:47:19
Done.
| |
| 11 _enabled = is_ios && enable_reading_list | |
| 12 flags = [ "ENABLE_READING_LIST=$_enabled" ] | |
| 13 } | |
| 14 | |
| 5 source_set("core") { | 15 source_set("core") { |
| 6 sources = [ | 16 sources = [ |
| 7 "reading_list_switches.cc", | 17 "reading_list_switches.cc", |
| 8 "reading_list_switches.h", | 18 "reading_list_switches.h", |
| 9 ] | 19 ] |
| 10 deps = [ | 20 deps = [ |
| 21 ":enable_flags", | |
| 11 "//base", | 22 "//base", |
| 12 ] | 23 ] |
| 13 } | 24 } |
| OLD | NEW |