diff options
author | estade <estade@chromium.org> | 2015-05-21 13:59:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-21 20:59:42 +0000 |
commit | 5e5529d1a3a3fd5b987d2ea5df89b88f4ca4948a (patch) | |
tree | 3b0f99488904e4a6a20d914ffa0213732efdb51d /extensions | |
parent | f5b01f7ac93752dbc654be2b328391d8484e724e (diff) | |
download | chromium_src-5e5529d1a3a3fd5b987d2ea5df89b88f4ca4948a.zip chromium_src-5e5529d1a3a3fd5b987d2ea5df89b88f4ca4948a.tar.gz chromium_src-5e5529d1a3a3fd5b987d2ea5df89b88f4ca4948a.tar.bz2 |
Change NetLog::ParametersCallback to return a scoped_ptr.
BUG=479898, 485606
TBR=benjhayden@chromium.org,sclittle@chromium.org
Review URL: https://codereview.chromium.org/1149763005
Cr-Commit-Position: refs/heads/master@{#330982}
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/browser/api/web_request/web_request_api_helpers.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.cc b/extensions/browser/api/web_request/web_request_api_helpers.cc index 73a8dd8..020aa4f 100644 --- a/extensions/browser/api/web_request/web_request_api_helpers.cc +++ b/extensions/browser/api/web_request/web_request_api_helpers.cc @@ -217,10 +217,10 @@ net::NetLog::ParametersCallback CreateNetLogExtensionIdCallback( } // Creates NetLog parameters to indicate that an extension modified a request. -// Caller takes ownership of returned value. -base::Value* NetLogModificationCallback(const EventResponseDelta* delta, - net::NetLogCaptureMode capture_mode) { - base::DictionaryValue* dict = new base::DictionaryValue(); +scoped_ptr<base::Value> NetLogModificationCallback( + const EventResponseDelta* delta, + net::NetLogCaptureMode capture_mode) { + scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); dict->SetString("extension_id", delta->extension_id); base::ListValue* modified_headers = new base::ListValue(); @@ -240,7 +240,7 @@ base::Value* NetLogModificationCallback(const EventResponseDelta* delta, deleted_headers->Append(new base::StringValue(*key)); } dict->Set("deleted_headers", deleted_headers); - return dict; + return dict.Pass(); } bool InDecreasingExtensionInstallationTimeOrder( |