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

Unified Diff: chrome/browser/google_apis/gdata_wapi_parser.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/google_apis/gdata_wapi_parser.cc
diff --git a/chrome/browser/google_apis/gdata_wapi_parser.cc b/chrome/browser/google_apis/gdata_wapi_parser.cc
index 4d2d09af3c3a21bba8c30de223613ca0b9ce2268..8e272239709ff6b3eb83929d7167241d673c48e2 100644
--- a/chrome/browser/google_apis/gdata_wapi_parser.cc
+++ b/chrome/browser/google_apis/gdata_wapi_parser.cc
@@ -841,7 +841,7 @@ scoped_ptr<ResourceList> ResourceList::ExtractAndParse(
as_dict->GetDictionary(kFeedField, &feed_dict)) {
return ResourceList::CreateFrom(*feed_dict);
}
- return scoped_ptr<ResourceList>(NULL);
+ return scoped_ptr<ResourceList>();
}
// static
@@ -849,7 +849,7 @@ scoped_ptr<ResourceList> ResourceList::CreateFrom(const base::Value& value) {
scoped_ptr<ResourceList> feed(new ResourceList());
if (!feed->Parse(value)) {
DVLOG(1) << "Invalid resource list!";
- return scoped_ptr<ResourceList>(NULL);
+ return scoped_ptr<ResourceList>();
}
return feed.Pass();
@@ -1039,7 +1039,7 @@ scoped_ptr<AccountMetadata> AccountMetadata::CreateFrom(
!dictionary->Get(kEntryField, &entry) ||
!metadata->Parse(*entry)) {
LOG(ERROR) << "Unable to create: Invalid account metadata feed!";
- return scoped_ptr<AccountMetadata>(NULL);
+ return scoped_ptr<AccountMetadata>();
}
return metadata.Pass();

Powered by Google App Engine
This is Rietveld 408576698