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

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: 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
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 1d6471ffd2baef8dfcea4dc3beaf8a24d3a5f14c..e0d2a76b72197a3df628e47a17593326f5bdeb7d 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -987,12 +987,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();
}
@@ -1304,7 +1302,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') | chrome/renderer/chrome_content_renderer_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698