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

Side by Side Diff: chrome/browser/shell_integration_win.cc

Issue 160218: Fix running default browser check/setting in UI thread on Linux.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « chrome/browser/shell_integration.cc ('k') | chrome/browser/views/options/general_page_view.h » ('j') | 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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration.cc ('k') | chrome/browser/views/options/general_page_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698