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

Unified Diff: ui/base/x/selection_utils.cc

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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 | « ui/base/x/selection_utils.h ('k') | ui/gfx/text_elider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/selection_utils.cc
diff --git a/ui/base/x/selection_utils.cc b/ui/base/x/selection_utils.cc
index a3f8494ec87918f0366097ce93afe90f292ede79..138745b797eedf17a9d4256a9a8193a68fc15c8b 100644
--- a/ui/base/x/selection_utils.cc
+++ b/ui/base/x/selection_utils.cc
@@ -55,7 +55,7 @@ void GetAtomIntersection(const std::vector< ::Atom>& desired,
}
}
-void AddString16ToVector(const string16& str,
+void AddString16ToVector(const base::string16& str,
std::vector<unsigned char>* bytes) {
const unsigned char* front =
reinterpret_cast<const unsigned char*>(str.data());
@@ -77,19 +77,19 @@ std::string RefCountedMemoryToString(
return std::string(reinterpret_cast<const char*>(front), size);
}
-string16 RefCountedMemoryToString16(
+base::string16 RefCountedMemoryToString16(
const scoped_refptr<base::RefCountedMemory>& memory) {
if (!memory.get()) {
NOTREACHED();
- return string16();
+ return base::string16();
}
size_t size = memory->size();
if (!size)
- return string16();
+ return base::string16();
const unsigned char* front = memory->front();
- return string16(reinterpret_cast<const base::char16*>(front), size / 2);
+ return base::string16(reinterpret_cast<const base::char16*>(front), size / 2);
}
///////////////////////////////////////////////////////////////////////////////
@@ -191,8 +191,8 @@ std::string SelectionData::GetText() const {
}
}
-string16 SelectionData::GetHtml() const {
- string16 markup;
+base::string16 SelectionData::GetHtml() const {
+ base::string16 markup;
if (type_ == atom_cache_.GetAtom(Clipboard::kMimeTypeHTML)) {
const unsigned char* data = GetData();
@@ -223,7 +223,7 @@ void SelectionData::AssignTo(std::string* result) const {
*result = RefCountedMemoryToString(memory_);
}
-void SelectionData::AssignTo(string16* result) const {
+void SelectionData::AssignTo(base::string16* result) const {
*result = RefCountedMemoryToString16(memory_);
}
« no previous file with comments | « ui/base/x/selection_utils.h ('k') | ui/gfx/text_elider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698