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

Unified Diff: chrome/browser/instant/instant_loader.cc

Issue 12001002: InstantExtended: Transient naventry for preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Save old transient entry; update URL. Created 7 years, 11 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/instant/instant_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 2d2ea420d0afb049c77ae58f5b3a456d0c0561f6..e8063ec39be180c066f63bf56ee6f90c41daa02e 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/ui/search/search_tab_helper.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper_delegate.h"
+#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/render_widget_host_view.h"
@@ -287,6 +288,9 @@ void InstantLoader::InstantSupportDetermined(bool supports_instant) {
return;
supports_instant_ = supports_instant;
+ const content::NavigationEntry* entry =
+ contents()->GetController().GetVisibleEntry();
+ base_navigation_entry_.reset(content::NavigationEntry::Create(*entry));
controller_->InstantSupportDetermined(contents(), supports_instant);
}

Powered by Google App Engine
This is Rietveld 408576698