| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome_frame/bho.h" | 5 #include "chrome_frame/bho.h" |
| 6 | 6 |
| 7 #include <shlguid.h> | 7 #include <shlguid.h> |
| 8 | 8 |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 DCHECK(state_ == PATCH_IBROWSER); | 376 DCHECK(state_ == PATCH_IBROWSER); |
| 377 if (!IS_PATCHED(IBrowserService)) { | 377 if (!IS_PATCHED(IBrowserService)) { |
| 378 vtable_patch::PatchInterfaceMethods(browser_service, | 378 vtable_patch::PatchInterfaceMethods(browser_service, |
| 379 IBrowserService_PatchInfo); | 379 IBrowserService_PatchInfo); |
| 380 } | 380 } |
| 381 } | 381 } |
| 382 | 382 |
| 383 void PatchHelper::UnpatchIfNeeded() { | 383 void PatchHelper::UnpatchIfNeeded() { |
| 384 if (state_ == PATCH_PROTOCOL) { | 384 if (state_ == PATCH_PROTOCOL) { |
| 385 g_trans_hooks.RevertHooks(); | 385 g_trans_hooks.RevertHooks(); |
| 386 if (GetIEVersion() == IE_9) { | 386 HttpNegotiatePatch::Uninitialize(); |
| 387 HttpNegotiatePatch::Uninitialize(); | |
| 388 } | |
| 389 } | 387 } |
| 390 state_ = UNKNOWN; | 388 state_ = UNKNOWN; |
| 391 } | 389 } |
| OLD | NEW |