summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 20:21:01 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 20:21:01 +0000
commit32c147158f76e19aa22efa2a7b14d3f0e1e23a02 (patch)
treea84b94bc6c2e4e52d009db317ed49a343658634c /chrome/browser/browser_init.cc
parent600a41fb05efe99eb2890e884a7af0541456c365 (diff)
downloadchromium_src-32c147158f76e19aa22efa2a7b14d3f0e1e23a02.zip
chromium_src-32c147158f76e19aa22efa2a7b14d3f0e1e23a02.tar.gz
chromium_src-32c147158f76e19aa22efa2a7b14d3f0e1e23a02.tar.bz2
Port DictionaryValue to use string16 instead of wstring.
Review URL: http://codereview.chromium.org/31014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r--chrome/browser/browser_init.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index d4ec343..a3d8dba 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -113,8 +113,10 @@ void SetOverrideHomePage(const CommandLine& command_line,
std::wstring new_homepage = URLFixerUpper::FixupRelativeFile(
browser_directory,
command_line.GetSwitchValue(switches::kHomePage));
- prefs->transient()->SetString(prefs::kHomePage, new_homepage);
- prefs->transient()->SetBoolean(prefs::kHomePageIsNewTabPage, false);
+ prefs->transient()->SetString(WideToUTF16Hack(prefs::kHomePage),
+ WideToUTF16Hack(new_homepage));
+ prefs->transient()->SetBoolean(
+ WideToUTF16Hack(prefs::kHomePageIsNewTabPage), false);
}
}
@@ -474,7 +476,8 @@ bool BrowserInit::ProcessCommandLine(
SetOverrideHomePage(command_line, profile->GetPrefs());
if (command_line.HasSwitch(switches::kBrowserStartRenderersManually))
- prefs->transient()->SetBoolean(prefs::kStartRenderersManually, true);
+ prefs->transient()->SetBoolean(
+ WideToUTF16Hack(prefs::kStartRenderersManually), true);
bool silent_launch = false;
#if defined(OS_WIN)