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

Unified Diff: google_apis/gaia/gaia_auth_util.cc

Issue 2815913005: Switch to using scoped_ptr with UserData (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « content/public/browser/browser_context.h ('k') | net/url_request/report_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/gaia_auth_util.cc
diff --git a/google_apis/gaia/gaia_auth_util.cc b/google_apis/gaia/gaia_auth_util.cc
index 2bbee2a8060b3dbea42872a24ad0ce85e6a9c20b..6e1d9369f45bfecde39727ebdd6b3507ece7026a 100644
--- a/google_apis/gaia/gaia_auth_util.cc
+++ b/google_apis/gaia/gaia_auth_util.cc
@@ -11,6 +11,7 @@
#include "base/bind.h"
#include "base/json/json_reader.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/values.h"
@@ -52,8 +53,8 @@ std::string CanonicalizeEmailImpl(const std::string& email_address,
class GaiaURLRequestUserData : public base::SupportsUserData::Data {
public:
- static base::SupportsUserData::Data* Create() {
- return new GaiaURLRequestUserData();
+ static std::unique_ptr<base::SupportsUserData::Data> Create() {
+ return base::MakeUnique<GaiaURLRequestUserData>();
}
};
« no previous file with comments | « content/public/browser/browser_context.h ('k') | net/url_request/report_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698