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

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

Issue 8785004: Change NavigationController::LoadURL to take a Referrer class instead of a GURL as referrer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 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_loader.cc
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 363ae459f55c14c603820f0665db5ec843b50538..96017dc51a86c6b4a74bce025fb5317265e01857 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -689,8 +689,8 @@ bool InstantLoader::Update(TabContentsWrapper* tab_contents,
DCHECK(template_url_id_ == 0);
preview_tab_contents_delegate_->PrepareForNewLoad();
frame_load_observer_.reset(NULL);
- preview_contents_->controller().LoadURL(url_, GURL(), transition_type,
- std::string());
+ preview_contents_->controller().LoadURL(url_, content::Referrer(),
+ transition_type, std::string());
}
return true;
}
@@ -1072,8 +1072,8 @@ void InstantLoader::LoadInstantURL(TabContentsWrapper* tab_contents,
CommandLine* cl = CommandLine::ForCurrentProcess();
if (cl->HasSwitch(switches::kInstantURL))
instant_url = GURL(cl->GetSwitchValueASCII(switches::kInstantURL));
- preview_contents_->controller().LoadURL(instant_url, GURL(), transition_type,
- std::string());
+ preview_contents_->controller().LoadURL(instant_url, content::Referrer(),
+ transition_type, std::string());
RenderViewHost* host = preview_contents_->render_view_host();
preview_contents_->tab_contents()->HideContents();

Powered by Google App Engine
This is Rietveld 408576698