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

Unified Diff: chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc

Issue 16703018: Rewrite scoped_ptr<T>(NULL) to use the default ctor in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc
diff --git a/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc b/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc
index ebcf75c637ae4a5bf068befe64f6ee70a6106b22..e99d63f5101a9b484e039ad5ada5dc1b47919d21 100644
--- a/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc
+++ b/chrome/browser/extensions/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc
@@ -350,7 +350,7 @@ scoped_ptr<DictionaryValue> GetDictionaryFromArray(
Value* entry = NULL;
ListValue* list = NULL;
if (!dictionary->GetWithoutPathExpansion(*name, &entry))
- return scoped_ptr<DictionaryValue>(NULL);
+ return scoped_ptr<DictionaryValue>();
switch (entry->GetType()) {
case Value::TYPE_STRING: // Replace the present string with a list.
list = new ListValue;
@@ -366,7 +366,7 @@ scoped_ptr<DictionaryValue> GetDictionaryFromArray(
break;
default:
NOTREACHED(); // We never put other Values here.
- return scoped_ptr<DictionaryValue>(NULL);
+ return scoped_ptr<DictionaryValue>();
}
} else {
dictionary->SetString(*name, *value);

Powered by Google App Engine
This is Rietveld 408576698