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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl_win.cc

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « webkit/plugins/npapi/plugin_list_win.cc ('k') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "webkit/plugins/npapi/webplugin_delegate_impl.h" 5 #include "webkit/plugins/npapi/webplugin_delegate_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 mouse_hook_ = SetWindowsHookEx(WH_MOUSE, MouseHookProc, NULL, 411 mouse_hook_ = SetWindowsHookEx(WH_MOUSE, MouseHookProc, NULL,
412 GetCurrentThreadId()); 412 GetCurrentThreadId());
413 } 413 }
414 } 414 }
415 415
416 // On XP, WMP will use its old UI unless a registry key under HKLM has the 416 // On XP, WMP will use its old UI unless a registry key under HKLM has the
417 // name of the current process. We do it in the installer for admin users, 417 // name of the current process. We do it in the installer for admin users,
418 // for the rest patch this function. 418 // for the rest patch this function.
419 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) && 419 if ((quirks_ & PLUGIN_QUIRK_PATCH_REGENUMKEYEXW) &&
420 base::win::GetVersion() == base::win::VERSION_XP && 420 base::win::GetVersion() == base::win::VERSION_XP &&
421 !base::win::RegKey().Open(HKEY_LOCAL_MACHINE, 421 (base::win::RegKey().Open(HKEY_LOCAL_MACHINE,
422 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe", 422 L"SOFTWARE\\Microsoft\\MediaPlayer\\ShimInclusionList\\chrome.exe",
423 KEY_READ) && 423 KEY_READ) != ERROR_SUCCESS) &&
424 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) { 424 !g_iat_patch_reg_enum_key_ex_w.Pointer()->is_patched()) {
425 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch( 425 g_iat_patch_reg_enum_key_ex_w.Pointer()->Patch(
426 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW", 426 L"wmpdxm.dll", "advapi32.dll", "RegEnumKeyExW",
427 WebPluginDelegateImpl::RegEnumKeyExWPatch); 427 WebPluginDelegateImpl::RegEnumKeyExWPatch);
428 } 428 }
429 429
430 return true; 430 return true;
431 } 431 }
432 432
433 void WebPluginDelegateImpl::PlatformDestroyInstance() { 433 void WebPluginDelegateImpl::PlatformDestroyInstance() {
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 ::ReleaseCapture(); 1405 ::ReleaseCapture();
1406 break; 1406 break;
1407 1407
1408 default: 1408 default:
1409 break; 1409 break;
1410 } 1410 }
1411 } 1411 }
1412 1412
1413 } // namespace npapi 1413 } // namespace npapi
1414 } // namespace webkit 1414 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/plugin_list_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698