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

Side by Side Diff: chrome/browser/supervised_user/legacy/supervised_user_registration_utility_stub.cc

Issue 1878143002: Convert //chrome/browser/supervised_user from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti lity_stub.h" 5 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti lity_stub.h"
6 6
7 #include <memory>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
10 #include "google_apis/gaia/gaia_urls.h" 11 #include "google_apis/gaia/gaia_urls.h"
11 #include "google_apis/gaia/google_service_auth_error.h" 12 #include "google_apis/gaia/google_service_auth_error.h"
12 13
13 SupervisedUserRegistrationUtilityStub::SupervisedUserRegistrationUtilityStub() 14 SupervisedUserRegistrationUtilityStub::SupervisedUserRegistrationUtilityStub()
14 : register_was_called_(false) { 15 : register_was_called_(false) {
15 } 16 }
16 17
17 SupervisedUserRegistrationUtilityStub:: 18 SupervisedUserRegistrationUtilityStub::
18 ~SupervisedUserRegistrationUtilityStub() { 19 ~SupervisedUserRegistrationUtilityStub() {
(...skipping 20 matching lines...) Expand all
39 } 40 }
40 41
41 void SupervisedUserRegistrationUtilityStub::RunFailureCallback( 42 void SupervisedUserRegistrationUtilityStub::RunFailureCallback(
42 const GoogleServiceAuthError::State state) { 43 const GoogleServiceAuthError::State state) {
43 if (callback_.is_null()) 44 if (callback_.is_null())
44 return; 45 return;
45 GoogleServiceAuthError error(state); 46 GoogleServiceAuthError error(state);
46 callback_.Run(error, std::string()); 47 callback_.Run(error, std::string());
47 callback_.Reset(); 48 callback_.Reset();
48 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698