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

Unified Diff: chrome/browser/extensions/extension_webrequest_api.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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
Index: chrome/browser/extensions/extension_webrequest_api.cc
diff --git a/chrome/browser/extensions/extension_webrequest_api.cc b/chrome/browser/extensions/extension_webrequest_api.cc
index 38441515dc1554a0f8d177dea19739146b422545..f22273a9fece40ff6cc16f63f3d2344e5046d0e7 100644
--- a/chrome/browser/extensions/extension_webrequest_api.cc
+++ b/chrome/browser/extensions/extension_webrequest_api.cc
@@ -123,11 +123,11 @@ class NetLogModificationParameter : public NetLogExtensionIdParameter {
}
void DeletedHeader(const std::string& key) {
- deleted_headers_.Append(Value::CreateStringValue(key));
+ deleted_headers_.Append(base::StringValue::New(key));
}
void ModifiedHeader(const std::string& key, const std::string& value) {
- modified_headers_.Append(Value::CreateStringValue(key + ": " + value));
+ modified_headers_.Append(base::StringValue::New(key + ": " + value));
}
private:
@@ -237,7 +237,7 @@ ListValue* GetRequestHeadersList(const net::HttpRequestHeaders& headers) {
// Creates a StringValue with the status line of |headers|. If |headers| is
// NULL, an empty string is returned. Ownership is passed to the caller.
StringValue* GetStatusLine(net::HttpResponseHeaders* headers) {
- return new StringValue(headers ? headers->GetStatusLine() : "");
+ return base::StringValue::New(headers ? headers->GetStatusLine() : "");
}
// Comparison operator that returns true if the extension that caused
« no previous file with comments | « chrome/browser/extensions/extension_webnavigation_api.cc ('k') | chrome/browser/extensions/extension_webstore_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698