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

Unified Diff: chrome/common/url_constants.cc

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Missing file Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/url_constants.cc
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index 55572f34a0bac62a4a32709a900791177e12b500..d7c128daedfa2aa564d5acaf1462b181ab6ac02b 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -10,6 +10,7 @@
#include "build/build_config.h"
#include "chrome/common/features.h"
#include "content/public/common/url_constants.h"
+#include "printing/features/features.h"
#include "url/url_util.h"
namespace chrome {
@@ -263,7 +264,7 @@ const char kChromeUIWelcomeHost[] = "welcome";
const char kChromeUIWelcomeWin10Host[] = "welcome-win10";
const char kChromeUIWorkersHost[] = "workers";
-#if defined(ENABLE_PRINT_PREVIEW)
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
const char kChromeUIPrintHost[] = "print";
#endif // ENABLE_PRINT_PREVIEW
@@ -709,7 +710,7 @@ const char* const kChromeHostURLs[] = {
#if defined(ENABLE_EXTENSIONS)
kChromeUIExtensionsHost,
#endif
-#if defined(ENABLE_PRINT_PREVIEW)
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
kChromeUIPrintHost,
#endif
#if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)

Powered by Google App Engine
This is Rietveld 408576698