From 23afa0fbdf77203d6ff57394ed0e2c1c3195b2bd Mon Sep 17 00:00:00 2001 From: "deanm@google.com" Date: Fri, 19 Sep 2008 15:58:55 +0000 Subject: Build a bunch more of chrome/ on Linux. Patch from Pawel Hajdan Jr. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2408 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/session_startup_pref.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome/browser/session_startup_pref.cc') diff --git a/chrome/browser/session_startup_pref.cc b/chrome/browser/session_startup_pref.cc index a261983..d99043d 100644 --- a/chrome/browser/session_startup_pref.cc +++ b/chrome/browser/session_startup_pref.cc @@ -37,6 +37,9 @@ void SessionStartupPref::SetStartupPref(PrefService* prefs, case URLS: type = 4; break; + + default: + break; } prefs->SetInteger(prefs::kRestoreOnStartup, type); @@ -86,7 +89,7 @@ SessionStartupPref SessionStartupPref::GetStartupPref(PrefService* prefs) { if (url_pref_list->Get(i, &value)) { std::wstring url_text; if (value->GetAsString(&url_text)) - pref.urls.push_back(GURL(url_text)); + pref.urls.push_back(GURL(WideToUTF8(url_text))); } } -- cgit v1.1