| 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 source_set("core") { | 5 source_set("core") { |
| 9 sources = [ | 6 sources = [ |
| 10 "reading_list_switches.cc", | 7 "reading_list_switches.cc", |
| 11 "reading_list_switches.h", | 8 "reading_list_switches.h", |
| 12 ] | 9 ] |
| 13 deps = [ | 10 deps = [ |
| 14 ":reading_list_enable_flags", | |
| 15 "//base", | 11 "//base", |
| 16 ] | 12 ] |
| 17 } | 13 } |
| 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 |