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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2498733002: Remove some global UI defines (Closed)
Patch Set: Merge Created 4 years, 1 month 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index b045f2ecf2752308d38772f6df28142cd2a3c82f..8ff7d1eab8a74ff765a457ed01de98bbcb7af28f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -123,6 +123,7 @@
#include "third_party/WebKit/public/platform/WebURLRequest.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "third_party/WebKit/public/platform/WebVector.h"
+#include "third_party/WebKit/public/public_features.h"
#include "third_party/WebKit/public/web/WebAXObject.h"
#include "third_party/WebKit/public/web/WebColorSuggestion.h"
#include "third_party/WebKit/public/web/WebDOMEvent.h"
@@ -2213,7 +2214,7 @@ void RenderViewImpl::OnSetRendererPrefs(
UpdateThemePrefs();
blink::setCaretBlinkInterval(renderer_prefs.caret_blink_interval);
-#if defined(USE_DEFAULT_RENDER_THEME)
+#if BUILDFLAG(USE_DEFAULT_RENDER_THEME)
if (renderer_prefs.use_custom_colors) {
blink::setFocusRingColor(renderer_prefs.focus_ring_color);
@@ -2226,7 +2227,7 @@ void RenderViewImpl::OnSetRendererPrefs(
webview()->themeChanged();
}
}
-#endif // defined(USE_DEFAULT_RENDER_THEME)
+#endif // BUILDFLAG(USE_DEFAULT_RENDER_THEME)
if (webview() &&
old_accept_languages != renderer_preferences_.accept_languages) {
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698