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

Unified Diff: app/l10n_util.cc

Issue 2602003: Refactored the translate infobars. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 years, 6 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 | « app/l10n_util.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/l10n_util.cc
diff --git a/app/l10n_util.cc b/app/l10n_util.cc
index d1c53f1b208e5a1ebed20223f7a8c0dc3d3006e7..e50bbb8f422cf8c21210807a1a9720b474cead4e 100644
--- a/app/l10n_util.cc
+++ b/app/l10n_util.cc
@@ -648,6 +648,15 @@ std::wstring GetStringF(int message_id,
string16(), string16(), offsets));
}
+string16 GetStringFUTF16(int message_id, const string16& a, size_t* offset) {
+ DCHECK(offset);
+ std::vector<size_t> offsets;
+ string16 result = GetStringFUTF16(message_id, a, string16(), &offsets);
+ DCHECK(offsets.size() == 1);
+ *offset = offsets[0];
+ return result;
+}
+
string16 GetStringFUTF16(int message_id,
const string16& a,
const string16& b,
« no previous file with comments | « app/l10n_util.h ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698