summaryrefslogtreecommitdiffstats
path: root/chrome/browser/shell_integration.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 01:32:20 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 01:32:20 +0000
commita23ef4e6cbf47ff08fa612e1fc8e13da6084fae2 (patch)
tree18faec146877e68429db9d5237256eb4c8252f21 /chrome/browser/shell_integration.cc
parentcd636d8fb36d118a995f913920031b1f6c33fdec (diff)
downloadchromium_src-a23ef4e6cbf47ff08fa612e1fc8e13da6084fae2.zip
chromium_src-a23ef4e6cbf47ff08fa612e1fc8e13da6084fae2.tar.gz
chromium_src-a23ef4e6cbf47ff08fa612e1fc8e13da6084fae2.tar.bz2
Fix regression caused by CommandLine change.
BUG=6863 Review URL: http://codereview.chromium.org/19001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/shell_integration.cc')
-rw-r--r--chrome/browser/shell_integration.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index d0481cf..f5a9a34 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -105,7 +105,8 @@ bool ShellIntegration::IsDefaultBrowser() {
if (!key.Valid() || !key.ReadValue(L"", &value))
return false;
// Need to normalize path in case it's been munged.
- CommandLine command_line(value);
+ CommandLine command_line(L"");
+ command_line.ParseFromString(value);
std::wstring short_path;
GetShortPathName(command_line.program().c_str(),
WriteInto(&short_path, MAX_PATH), MAX_PATH);