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

Unified Diff: chrome/browser/ui/browser_instant_controller.cc

Issue 11416187: Commit instant loader when the instant page navigates away from instant URL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removing content/* changes. Created 8 years 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/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 9b8204994fd1436220b588d895528755bbde7b95..f999a1f00be8c053444d4e2280e33e6fc9ab6d17 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -140,6 +140,13 @@ void BrowserInstantController::ActiveTabChanged() {
instant_.ActiveTabChanged();
}
+void BrowserInstantController::AboutToOpenURL(
+ content::WebContents* web_contents,
+ const GURL& url) {
+ if (instant_.GetPreviewContents() == web_contents)
+ instant_.InstantLoaderAboutToNavigateMainFrame(url);
+}
+
void BrowserInstantController::SetContentHeight(int height) {
OnThemeAreaHeightChanged(height);
}
« chrome/browser/ui/browser.cc ('K') | « chrome/browser/ui/browser_instant_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698