| 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 |
| 5 source_set("core") { | 8 source_set("core") { |
| 6 sources = [ | 9 sources = [ |
| 7 "reading_list_switches.cc", | 10 "reading_list_switches.cc", |
| 8 "reading_list_switches.h", | 11 "reading_list_switches.h", |
| 9 ] | 12 ] |
| 10 deps = [ | 13 deps = [ |
| 14 ":reading_list_enable_flags", |
| 11 "//base", | 15 "//base", |
| 12 ] | 16 ] |
| 13 } | 17 } |
| 18 |
| 19 buildflag_header("reading_list_enable_flags") { |
| 20 header = "reading_list_enable_flags.h" |
| 21 _enabled = is_ios && enable_reading_list |
| 22 flags = [ "ENABLE_READING_LIST=$_enabled" ] |
| 23 } |
| OLD | NEW |