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

Unified Diff: chrome/browser/net/referrer.cc

Issue 104493005: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix 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
Index: chrome/browser/net/referrer.cc
diff --git a/chrome/browser/net/referrer.cc b/chrome/browser/net/referrer.cc
index c1902f9672df98dee9d84c6d396ad5c43d3b9a43..67ac6bfba5a1c83b76139d2086465de961b73912 100644
--- a/chrome/browser/net/referrer.cc
+++ b/chrome/browser/net/referrer.cc
@@ -120,10 +120,11 @@ bool ReferrerValue::Trim(double reduce_rate, double threshold) {
}
-void Referrer::Deserialize(const Value& value) {
- if (value.GetType() != Value::TYPE_LIST)
+void Referrer::Deserialize(const base::Value& value) {
+ if (value.GetType() != base::Value::TYPE_LIST)
return;
- const ListValue* subresource_list(static_cast<const ListValue*>(&value));
+ const base::ListValue* subresource_list(
+ static_cast<const base::ListValue*>(&value));
size_t index = 0; // Bounds checking is done by subresource_list->Get*().
while (true) {
std::string url_spec;
@@ -144,7 +145,7 @@ void Referrer::Deserialize(const Value& value) {
}
}
-Value* Referrer::Serialize() const {
+base::Value* Referrer::Serialize() const {
base::ListValue* subresource_list(new base::ListValue);
for (const_iterator it = begin(); it != end(); ++it) {
base::StringValue* url_spec(new base::StringValue(it->first.spec()));
« no previous file with comments | « chrome/browser/net/proxy_policy_handler.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_proxy_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698