| OLD | NEW |
| 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/browser/shell_integration.h" | 5 #include "chrome/browser/shell_integration.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <shobjidl.h> | 9 #include <shobjidl.h> |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 std::wstring key_path(L"http"); | 146 std::wstring key_path(L"http"); |
| 147 key_path.append(ShellUtil::kRegShellOpen); | 147 key_path.append(ShellUtil::kRegShellOpen); |
| 148 RegKey key(HKEY_CLASSES_ROOT, key_path.c_str(), KEY_READ); | 148 RegKey key(HKEY_CLASSES_ROOT, key_path.c_str(), KEY_READ); |
| 149 std::wstring app_cmd; | 149 std::wstring app_cmd; |
| 150 if (key.Valid() && key.ReadValue(L"", &app_cmd) && | 150 if (key.Valid() && key.ReadValue(L"", &app_cmd) && |
| 151 std::wstring::npos != StringToLowerASCII(app_cmd).find(L"firefox")) | 151 std::wstring::npos != StringToLowerASCII(app_cmd).find(L"firefox")) |
| 152 ff_default = true; | 152 ff_default = true; |
| 153 } | 153 } |
| 154 return ff_default; | 154 return ff_default; |
| 155 } | 155 } |
| OLD | NEW |