diff options
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r-- | chrome/browser/browser_init.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc index a3d8dba..d4ec343 100644 --- a/chrome/browser/browser_init.cc +++ b/chrome/browser/browser_init.cc @@ -113,10 +113,8 @@ void SetOverrideHomePage(const CommandLine& command_line, std::wstring new_homepage = URLFixerUpper::FixupRelativeFile( browser_directory, command_line.GetSwitchValue(switches::kHomePage)); - prefs->transient()->SetString(WideToUTF16Hack(prefs::kHomePage), - WideToUTF16Hack(new_homepage)); - prefs->transient()->SetBoolean( - WideToUTF16Hack(prefs::kHomePageIsNewTabPage), false); + prefs->transient()->SetString(prefs::kHomePage, new_homepage); + prefs->transient()->SetBoolean(prefs::kHomePageIsNewTabPage, false); } } @@ -476,8 +474,7 @@ bool BrowserInit::ProcessCommandLine( SetOverrideHomePage(command_line, profile->GetPrefs()); if (command_line.HasSwitch(switches::kBrowserStartRenderersManually)) - prefs->transient()->SetBoolean( - WideToUTF16Hack(prefs::kStartRenderersManually), true); + prefs->transient()->SetBoolean(prefs::kStartRenderersManually, true); bool silent_launch = false; #if defined(OS_WIN) |