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

Unified Diff: chrome/browser/tab_contents/match_preview.cc

Issue 3415026: Makes instant support other open dispositions. (Closed)
Patch Set: Merge and prune Created 10 years, 3 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 | « chrome/browser/tab_contents/match_preview.h ('k') | chrome/browser/tab_contents/navigation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/match_preview.cc
diff --git a/chrome/browser/tab_contents/match_preview.cc b/chrome/browser/tab_contents/match_preview.cc
index 2b25bb2fcf3cacd81850c6524b28d6f0ddf4a9ef..e737422480d216d5b5363d797120c17d26995caf 100644
--- a/chrome/browser/tab_contents/match_preview.cc
+++ b/chrome/browser/tab_contents/match_preview.cc
@@ -454,7 +454,8 @@ MatchPreview::MatchPreview(MatchPreviewDelegate* delegate)
: delegate_(delegate),
tab_contents_(NULL),
is_active_(false),
- template_url_id_(0) {
+ template_url_id_(0),
+ last_transition_type_(PageTransition::LINK) {
preview_tab_contents_delegate_.reset(new TabContentsDelegateImpl(this));
}
@@ -472,6 +473,7 @@ void MatchPreview::Update(TabContents* tab_contents,
DestroyPreviewContents();
tab_contents_ = tab_contents;
+ last_transition_type_ = match.transition;
if (url_ == match.destination_url)
return;
« no previous file with comments | « chrome/browser/tab_contents/match_preview.h ('k') | chrome/browser/tab_contents/navigation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698