diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 07:33:24 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-19 07:33:24 +0000 |
commit | ad04a7013db13a4402160e8596ab2f7e4f19fb0d (patch) | |
tree | 0cbe6388155597c3fe0d281e400e37a49fc53824 /chrome | |
parent | 559a5a413950b4d7ea379bdd4a954e744d8a0bf2 (diff) | |
download | chromium_src-ad04a7013db13a4402160e8596ab2f7e4f19fb0d.zip chromium_src-ad04a7013db13a4402160e8596ab2f7e4f19fb0d.tar.gz chromium_src-ad04a7013db13a4402160e8596ab2f7e4f19fb0d.tar.bz2 |
Switched dns_global.cc over to UTF-8 strings.
Review URL: http://codereview.chromium.org/15065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/net/dns_global.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/net/dns_global.cc b/chrome/browser/net/dns_global.cc index eb8d79f..096af58 100644 --- a/chrome/browser/net/dns_global.cc +++ b/chrome/browser/net/dns_global.cc @@ -251,7 +251,7 @@ void PrefetchObserver::SaveStartupListAsPref(PrefService* local_state) { for (Results::iterator it = first_resolutions->begin(); it != first_resolutions->end(); it++) { - const std::wstring hostname = ASCIIToWide(it->first); + const std::string hostname = it->first; startup_list->Append(Value::CreateStringValue(hostname)); } } @@ -440,9 +440,9 @@ void DnsPrefetchHostNamesAtStartup(PrefService* user_prefs, for (ListValue::iterator it = startup_list->begin(); it != startup_list->end(); it++) { - std::wstring w_hostname; - (*it)->GetAsString(&w_hostname); - hostnames.push_back(WideToASCII(w_hostname)); + std::string hostname; + (*it)->GetAsString(&hostname); + hostnames.push_back(hostname); } } |