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

Unified Diff: webkit/common/dom_storage/dom_storage_map.cc

Issue 16415016: Move nullable_string16.h to the string subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar Created 7 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 | « webkit/common/dom_storage/dom_storage_map.h ('k') | webkit/common/dom_storage/dom_storage_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/common/dom_storage/dom_storage_map.cc
diff --git a/webkit/common/dom_storage/dom_storage_map.cc b/webkit/common/dom_storage/dom_storage_map.cc
index 003a6d207e1a1451fa353051e20cc5f61514a63f..377d185841afb3bc2df33db7301af5d8c8b72fe4 100644
--- a/webkit/common/dom_storage/dom_storage_map.cc
+++ b/webkit/common/dom_storage/dom_storage_map.cc
@@ -39,9 +39,9 @@ unsigned DomStorageMap::Length() const {
return values_.size();
}
-NullableString16 DomStorageMap::Key(unsigned index) {
+base::NullableString16 DomStorageMap::Key(unsigned index) {
if (index >= values_.size())
- return NullableString16(true);
+ return base::NullableString16(true);
while (last_key_index_ != index) {
if (last_key_index_ > index) {
--key_iterator_;
@@ -51,22 +51,22 @@ NullableString16 DomStorageMap::Key(unsigned index) {
++last_key_index_;
}
}
- return NullableString16(key_iterator_->first, false);
+ return base::NullableString16(key_iterator_->first, false);
}
-NullableString16 DomStorageMap::GetItem(const base::string16& key) const {
+base::NullableString16 DomStorageMap::GetItem(const base::string16& key) const {
ValuesMap::const_iterator found = values_.find(key);
if (found == values_.end())
- return NullableString16(true);
+ return base::NullableString16(true);
return found->second;
}
bool DomStorageMap::SetItem(
const base::string16& key, const base::string16& value,
- NullableString16* old_value) {
+ base::NullableString16* old_value) {
ValuesMap::const_iterator found = values_.find(key);
if (found == values_.end())
- *old_value = NullableString16(true);
+ *old_value = base::NullableString16(true);
else
*old_value = found->second;
@@ -80,7 +80,7 @@ bool DomStorageMap::SetItem(
if (new_item_size > old_item_size && new_bytes_used > quota_)
return false;
- values_[key] = NullableString16(value, false);
+ values_[key] = base::NullableString16(value, false);
ResetKeyIterator();
bytes_used_ = new_bytes_used;
return true;
« no previous file with comments | « webkit/common/dom_storage/dom_storage_map.h ('k') | webkit/common/dom_storage/dom_storage_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698