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

Unified Diff: chrome/browser/instant/instant_client.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: Minor spelling fix. 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/instant/instant_client.cc
diff --git a/chrome/browser/instant/instant_client.cc b/chrome/browser/instant/instant_client.cc
index eb045bc7e514b5860c439896fb8c7e0862b336d2..abad50361f946ce08cf78429182c3588b68e38f2 100644
--- a/chrome/browser/instant/instant_client.cc
+++ b/chrome/browser/instant/instant_client.cc
@@ -97,6 +97,21 @@ bool InstantClient::OnMessageReceived(const IPC::Message& message) {
return handled;
}
+void InstantClient::DidCommitProvisionalLoadForFrame(
+ int64 frame_id,
+ bool is_main_frame,
+ const GURL& url,
+ content::PageTransition transition_type,
+ content::RenderViewHost* render_view_host) {
+ if (!is_main_frame)
samarth 2012/12/07 01:14:34 nit: fix indent
Shishir 2012/12/07 21:01:25 Done.
+ return;
+ delegate_->AboutToNavigateMainFrame(url);
+}
+
+void InstantClient::AboutToOpenURL(const GURL& url) {
+ delegate_->AboutToNavigateMainFrame(url);
+}
+
void InstantClient::SetSuggestions(
int page_id,
const std::vector<InstantSuggestion>& suggestions) {

Powered by Google App Engine
This is Rietveld 408576698