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

Side by Side Diff: chrome_frame/bho.cc

Issue 1171001: Enable the moniker patch by default.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 if (state_ == UNKNOWN) { 313 if (state_ == UNKNOWN) {
314 // If we're going to start patching things, we'd better make sure that we 314 // If we're going to start patching things, we'd better make sure that we
315 // stick around for ever more: 315 // stick around for ever more:
316 PinModule(); 316 PinModule();
317 317
318 HttpNegotiatePatch::Initialize(); 318 HttpNegotiatePatch::Initialize();
319 319
320 ProtocolPatchMethod patch_method = 320 ProtocolPatchMethod patch_method =
321 static_cast<ProtocolPatchMethod>( 321 static_cast<ProtocolPatchMethod>(
322 GetConfigInt(PATCH_METHOD_IBROWSER, kPatchProtocols)); 322 GetConfigInt(PATCH_METHOD_IBROWSER_AND_MONIKER, kPatchProtocols));
323 323
324 if (patch_method == PATCH_METHOD_INET_PROTOCOL) { 324 if (patch_method == PATCH_METHOD_INET_PROTOCOL) {
325 ProtocolSinkWrap::PatchProtocolHandlers(); 325 ProtocolSinkWrap::PatchProtocolHandlers();
326 state_ = PATCH_PROTOCOL; 326 state_ = PATCH_PROTOCOL;
327 } else { 327 } else {
328 DCHECK(patch_method == PATCH_METHOD_IBROWSER || 328 DCHECK(patch_method == PATCH_METHOD_IBROWSER ||
329 patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER); 329 patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER);
330 state_ = PATCH_IBROWSER; 330 state_ = PATCH_IBROWSER;
331 if (patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER) { 331 if (patch_method == PATCH_METHOD_IBROWSER_AND_MONIKER) {
332 MonikerPatch::Initialize(); 332 MonikerPatch::Initialize();
(...skipping 21 matching lines...) Expand all
354 } else if (state_ == PATCH_IBROWSER) { 354 } else if (state_ == PATCH_IBROWSER) {
355 vtable_patch::UnpatchInterfaceMethods(IBrowserService_PatchInfo); 355 vtable_patch::UnpatchInterfaceMethods(IBrowserService_PatchInfo);
356 MonikerPatch::Uninitialize(); 356 MonikerPatch::Uninitialize();
357 } 357 }
358 358
359 HttpNegotiatePatch::Uninitialize(); 359 HttpNegotiatePatch::Uninitialize();
360 360
361 state_ = UNKNOWN; 361 state_ = UNKNOWN;
362 } 362 }
363 363
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698