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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_ui.cc

Issue 134263005: Implement inline signin with iframe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make embedded view messaging work Created 6 years, 10 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/browser/ui/webui/signin/inline_login_ui.cc
diff --git a/chrome/browser/ui/webui/signin/inline_login_ui.cc b/chrome/browser/ui/webui/signin/inline_login_ui.cc
index 4748c0418a079a73404adc0502c37a5927b072bf..17079533e2b4c6e08696fca49eb0aeafe25eb088 100644
--- a/chrome/browser/ui/webui/signin/inline_login_ui.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_ui.cc
@@ -22,6 +22,7 @@ namespace {
content::WebUIDataSource* CreateWebUIDataSource() {
content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIChromeSigninHost);
+ source->OverrideContentSecurityPolicyFrameSrc("frame-src chrome-extension:;");
source->SetUseJsonJSFormatV2();
source->SetJsonPath("strings.js");
@@ -45,10 +46,6 @@ InlineLoginUI::InlineLoginUI(content::WebUI* web_ui)
web_ui->AddMessageHandler(new chromeos::InlineLoginHandlerChromeOS());
#else
web_ui->AddMessageHandler(new InlineLoginHandlerImpl());
- // Required for intercepting extension function calls when the page is loaded
- // in a bubble (not a full tab, thus tab helpers are not registered
- // automatically).
- extensions::TabHelper::CreateForWebContents(web_ui->GetWebContents());
guohui 2014/02/11 22:29:57 To fix the embedded signin flow, instead of creati
xiyuan 2014/02/11 22:39:55 We need "ExtensionWebContentsObserver". But this l
guohui 2014/02/11 23:22:43 I had similar issue before when implementing the e
Roger Tawa OOO till Jul 10th 2014/02/12 03:07:12 Implemented Xiyuan's suggestion here.
#endif
}
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | content/browser/webui/url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698