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

Unified Diff: chrome/browser/ui/extensions/shell_window.cc

Issue 10387074: Only disallow top-level navigations in platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 8 years, 7 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/extensions/shell_window.cc
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc
index 701e97cb557041b8f1161ba30a8407ee62d34b9e..239662824185645f7d023d0c1b7a6fce1b64ceb0 100644
--- a/chrome/browser/ui/extensions/shell_window.cc
+++ b/chrome/browser/ui/extensions/shell_window.cc
@@ -104,8 +104,8 @@ ShellWindow::ShellWindow(Profile* profile,
content::WebContentsObserver::Observe(web_contents_);
web_contents_->SetDelegate(this);
web_contents_->SetViewType(chrome::VIEW_TYPE_APP_SHELL);
- web_contents_->GetMutableRendererPrefs()->browser_handles_all_requests =
- true;
+ web_contents_->GetMutableRendererPrefs()->
+ browser_handles_all_top_level_requests = true;
web_contents_->GetRenderViewHost()->SyncRendererPrefs();
web_contents_->GetController().LoadURL(

Powered by Google App Engine
This is Rietveld 408576698