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

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

Issue 7791029: When the user navigates to the home page, make sure to set the RLZ string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: When the user navigates to the home page, make sure to set the RLZ string Created 9 years, 4 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/browser_main.cc ('k') | chrome/browser/rlz/rlz.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_loader.cc
===================================================================
--- chrome/browser/instant/instant_loader.cc (revision 99286)
+++ chrome/browser/instant/instant_loader.cc (working copy)
@@ -181,7 +181,8 @@
// TabContentsDelegate:
virtual void NavigationStateChanged(const TabContents* source,
unsigned changed_flags) OVERRIDE;
- virtual std::string GetNavigationHeaders(const GURL& url) OVERRIDE;
+ virtual void AddNavigationHeaders(const GURL& url,
+ std::string* headers) OVERRIDE;
virtual bool ShouldFocusConstrainedWindow() OVERRIDE;
virtual void WillShowConstrainedWindow(TabContents* source) OVERRIDE;
virtual bool ShouldSuppressDialogs() OVERRIDE;
@@ -412,12 +413,11 @@
}
}
-std::string InstantLoader::TabContentsDelegateImpl::GetNavigationHeaders(
- const GURL& url) {
- std::string header;
+void InstantLoader::TabContentsDelegateImpl::AddNavigationHeaders(
+ const GURL& url,
+ std::string* headers) {
net::HttpUtil::AppendHeaderIfMissing(kPreviewHeader, kPreviewHeaderValue,
- &header);
- return header;
+ headers);
}
bool InstantLoader::TabContentsDelegateImpl::ShouldFocusConstrainedWindow() {
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/rlz/rlz.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698