Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(972)

Unified Diff: chrome/browser/importer/importer_bridge.cc

Issue 3117017: Remove deprecated wstring Get(As)String() methods from Value, etc. (Closed)
Patch Set: fix win Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/notifications/notifications_prefs_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/importer_bridge.cc
diff --git a/chrome/browser/importer/importer_bridge.cc b/chrome/browser/importer/importer_bridge.cc
index 53d99f712aae6af3b95f185e4e1da8cd85d6c90f..9034305229cebf70e4636d74264127901a0b1aa4 100644
--- a/chrome/browser/importer/importer_bridge.cc
+++ b/chrome/browser/importer/importer_bridge.cc
@@ -6,6 +6,7 @@
#include "app/l10n_util.h"
#include "base/scoped_ptr.h"
+#include "base/string16.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/chrome_thread.h"
@@ -182,11 +183,10 @@ void ExternalProcessImporterBridge::NotifyEnded() {
// The internal process detects import end when all items have been received.
}
+// TODO(viettrungluu): convert to string16.
std::wstring ExternalProcessImporterBridge::GetLocalizedString(
int message_id) {
- std::wstring message;
- localized_strings_->GetString(ASCIIToWide(base::IntToString(message_id)),
- &message);
- return message;
+ string16 message;
+ localized_strings_->GetString(base::IntToString(message_id), &message);
+ return UTF16ToWideHack(message);
}
-
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/notifications/notifications_prefs_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698