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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 2561013002: Remove the enable_themes build flag and define. (Closed)
Patch Set: Merge Created 4 years 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/browser/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index 8a9faccb7bf70b89846d67947d3771a600dc195f..ddc42c4d73ac32c7af3624f97b8f625cbac08bbe 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/ui/webui/ntp/favicon_webui_handler.h"
#include "chrome/browser/ui/webui/ntp/ntp_resource_cache.h"
#include "chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.h"
+#include "chrome/browser/ui/webui/theme_handler.h"
#include "chrome/common/url_constants.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/prefs/pref_service.h"
@@ -30,10 +31,6 @@
#include "ui/base/resource/resource_bundle.h"
#include "url/gurl.h"
-#if defined(ENABLE_THEMES)
-#include "chrome/browser/ui/webui/theme_handler.h"
-#endif
-
using content::BrowserThread;
using content::WebUIController;
@@ -74,10 +71,8 @@ NewTabUI::NewTabUI(content::WebUI* web_ui)
web_ui->AddMessageHandler(new AppLauncherHandler(service));
}
-#if defined(ENABLE_THEMES)
if (!profile->IsGuestSession())
web_ui->AddMessageHandler(new ThemeHandler());
-#endif
std::unique_ptr<NewTabHTMLSource> html_source(
new NewTabHTMLSource(profile->GetOriginalProfile()));
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_resource_cache_factory.cc ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698