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

Unified Diff: chrome/browser/ui/search/instant_controller.cc

Issue 12621008: chrome-search: should not be display-isolated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to HEAD Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 60acd260333f69a05a8c212f36268ac1b369a63b..93c3b3bb2f31d248283818af07d9bcf3ec7b0073 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -1015,12 +1015,10 @@ void InstantController::InstantPageRenderViewCreated(
omnibox_focus_state_ == OMNIBOX_FOCUS_INVISIBLE);
overlay_->SetOmniboxBounds(omnibox_bounds_);
overlay_->InitializeFonts();
- overlay_->GrantChromeSearchAccessFromOrigin(GURL(overlay_->instant_url()));
} else if (IsContentsFrom(ntp(), contents)) {
ntp_->SetDisplayInstantResults(instant_enabled_);
ntp_->SetOmniboxBounds(omnibox_bounds_);
ntp_->InitializeFonts();
- ntp_->GrantChromeSearchAccessFromOrigin(GURL(ntp_->instant_url()));
} else {
NOTREACHED();
}
@@ -1338,7 +1336,6 @@ void InstantController::ResetInstantTab() {
instant_tab_->SetDisplayInstantResults(instant_enabled_);
instant_tab_->SetOmniboxBounds(omnibox_bounds_);
instant_tab_->InitializeFonts();
- instant_tab_->GrantChromeSearchAccessFromOrigin(active_tab->GetURL());
StartListeningToMostVisitedChanges();
instant_tab_->KeyCaptureChanged(
omnibox_focus_state_ == OMNIBOX_FOCUS_INVISIBLE);
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698