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

Unified Diff: content/child/browser_font_resource_trusted.cc

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « content/browser/worker_host/worker_service_impl.cc ('k') | content/child/db_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/browser_font_resource_trusted.cc
diff --git a/content/child/browser_font_resource_trusted.cc b/content/child/browser_font_resource_trusted.cc
index 35ad82403bf2722564d2e47faf124f6ac01785cc..be4a8b618b5b1acacbb942740dd34073935c0100 100644
--- a/content/child/browser_font_resource_trusted.cc
+++ b/content/child/browser_font_resource_trusted.cc
@@ -43,14 +43,14 @@ namespace {
// undefined reference linker error.
const char kCommonScript[] = "Zyyy";
-string16 GetFontFromMap(
+base::string16 GetFontFromMap(
const webkit_glue::ScriptFontFamilyMap& map,
const std::string& script) {
webkit_glue::ScriptFontFamilyMap::const_iterator it =
map.find(script);
if (it != map.end())
return it->second;
- return string16();
+ return base::string16();
}
// Splits a PP_BrowserFont_Trusted_TextRun into a sequence or LTR and RTL
@@ -85,7 +85,7 @@ class TextRunCollection {
ubidi_close(bidi_);
}
- const string16& text() const { return text_; }
+ const base::string16& text() const { return text_; }
int num_runs() const { return num_runs_; }
// Returns a WebTextRun with the info for the run at the given index.
@@ -94,7 +94,7 @@ class TextRunCollection {
DCHECK(index < num_runs_);
if (bidi_) {
bool run_rtl = !!ubidi_getVisualRun(bidi_, index, run_start, run_len);
- return WebTextRun(string16(&text_[*run_start], *run_len),
+ return WebTextRun(base::string16(&text_[*run_start], *run_len),
run_rtl, true);
}
@@ -110,7 +110,7 @@ class TextRunCollection {
UBiDi* bidi_;
// Text of all the runs.
- string16 text_;
+ base::string16 text_;
int num_runs_;
@@ -167,7 +167,7 @@ WebFontDescription PPFontDescToWebFontDesc(
StringVar* face_name = StringVar::FromPPVar(font.face); // Possibly null.
WebFontDescription result;
- string16 resolved_family;
+ base::string16 resolved_family;
if (!face_name || face_name->value().empty()) {
// Resolve the generic family.
switch (font.family) {
« no previous file with comments | « content/browser/worker_host/worker_service_impl.cc ('k') | content/child/db_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698