summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 07:33:24 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 07:33:24 +0000
commitad04a7013db13a4402160e8596ab2f7e4f19fb0d (patch)
tree0cbe6388155597c3fe0d281e400e37a49fc53824
parent559a5a413950b4d7ea379bdd4a954e744d8a0bf2 (diff)
downloadchromium_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
-rw-r--r--chrome/browser/net/dns_global.cc8
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);
}
}