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

Unified Diff: chrome/browser/ui/webui/engagement/site_engagement_ui.cc

Issue 1467133004: Revert of Serve mojo WebUI resources from the same origin as the WebUI itself. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | chrome/browser/ui/webui/mojo_web_ui_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/engagement/site_engagement_ui.cc
diff --git a/chrome/browser/ui/webui/engagement/site_engagement_ui.cc b/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
index f756bc59f93b81b61869cb2ac38a92a1fea84b89..0ae81f98dea8cac48957b4173b6f3023bb275d40 100644
--- a/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
+++ b/chrome/browser/ui/webui/engagement/site_engagement_ui.cc
@@ -70,13 +70,13 @@
source->AddResourcePath("engagement_table.js",
IDR_SITE_ENGAGEMENT_ENGAGEMENT_TABLE_JS);
source->AddResourcePath("site_engagement.js", IDR_SITE_ENGAGEMENT_JS);
- source->AddResourcePath(
- "chrome/browser/ui/webui/engagement/site_engagement.mojom",
- IDR_SITE_ENGAGEMENT_MOJO_JS);
- source->AddMojoResources();
source->SetDefaultResource(IDR_SITE_ENGAGEMENT_HTML);
content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), source.release());
+
+ AddMojoResourcePath(
+ "chrome/browser/ui/webui/engagement/site_engagement.mojom",
+ IDR_SITE_ENGAGEMENT_MOJO_JS);
}
SiteEngagementUI::~SiteEngagementUI() {}
« no previous file with comments | « no previous file | chrome/browser/ui/webui/mojo_web_ui_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698