diff options
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index f6c0328..4d71b37 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -515,8 +515,7 @@ void Browser::ProcessPendingUIUpdates() { void Browser::OpenURLFromTab(TabContents* source, const GURL& url, WindowOpenDisposition disposition, - PageTransition::Type transition, - const std::string& override_encoding) { + PageTransition::Type transition) { // No code for these yet DCHECK((disposition != NEW_POPUP) && (disposition != SAVE_TO_DISK)); @@ -631,14 +630,6 @@ void Browser::OpenURLFromTab(TabContents* source, // front-most. new_contents->Focus(); } - - if (!override_encoding.empty()) { - // The new tab needs a special encoding, such as a view source page - // which should use the same encoding as the original page. - WebContents* web_contents = new_contents->AsWebContents(); - if (web_contents) - web_contents->set_override_encoding(override_encoding); - } } void Browser::NavigationStateChanged(const TabContents* source, |