| Index: chrome/browser/instant/instant_loader.cc
|
| ===================================================================
|
| --- chrome/browser/instant/instant_loader.cc (revision 98807)
|
| +++ 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() {
|
|
|