diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 23:50:34 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-27 23:50:34 +0000 |
commit | 39e71a62e992a5f74e0a7f0df74f034cd442b8d7 (patch) | |
tree | 559bbe832fd1d638c3655795ff698f41fbd36cff /chrome_frame/bho.cc | |
parent | 1eca4715f0d33d2a01defe078186251533b35a7f (diff) | |
download | chromium_src-39e71a62e992a5f74e0a7f0df74f034cd442b8d7.zip chromium_src-39e71a62e992a5f74e0a7f0df74f034cd442b8d7.tar.gz chromium_src-39e71a62e992a5f74e0a7f0df74f034cd442b8d7.tar.bz2 |
Remove the calls to ready mode from Bho::SetSite.
Chrome Frame doesn't currently use ready mode and this code is on the critical path during startup.
BUG=NONE
TEST=NONE
Review URL: https://chromiumcodereview.appspot.com/10696015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/bho.cc')
-rw-r--r-- | chrome_frame/bho.cc | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/chrome_frame/bho.cc b/chrome_frame/bho.cc index f6b87a4..240cd1d 100644 --- a/chrome_frame/bho.cc +++ b/chrome_frame/bho.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -69,28 +69,6 @@ HRESULT Bho::FinalConstruct() { void Bho::FinalRelease() { } -namespace { - -// Allows Ready Mode to disable Chrome Frame by deactivating User Agent -// modification and X-UA-Compatible header/tag detection. -class ReadyModeDelegateImpl : public ready_mode::Delegate { - public: - ReadyModeDelegateImpl() {} - - // ready_mode::Delegate implementation - virtual void DisableChromeFrame(); - - private: - DISALLOW_COPY_AND_ASSIGN(ReadyModeDelegateImpl); -}; // class ReadyModeDelegateImpl - -void ReadyModeDelegateImpl::DisableChromeFrame() { - HttpNegotiatePatch::set_modify_user_agent(false); - ProtocolSinkWrap::set_ignore_xua(true); -} - -} // namespace - STDMETHODIMP Bho::SetSite(IUnknown* site) { HRESULT hr = S_OK; if (site) { @@ -99,8 +77,6 @@ STDMETHODIMP Bho::SetSite(IUnknown* site) { if (web_browser2) { hr = DispEventAdvise(web_browser2, &DIID_DWebBrowserEvents2); DCHECK(SUCCEEDED(hr)) << "DispEventAdvise failed. Error: " << hr; - - ready_mode::Configure(new ReadyModeDelegateImpl(), web_browser2); } if (g_patch_helper.state() == PatchHelper::PATCH_IBROWSER) { |