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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate_stub.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_ crypto_delegate.h" 6 #include "chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_ crypto_delegate.h"
7 7
8 namespace extensions { 8 namespace extensions {
9 9
10 namespace easy_unlock_private = api::easy_unlock_private; 10 namespace easy_unlock_private = api::easy_unlock_private;
(...skipping 30 matching lines...) Expand all
41 callback.Run(""); 41 callback.Run("");
42 } 42 }
43 43
44 private: 44 private:
45 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateCryptoDelegateStub); 45 DISALLOW_COPY_AND_ASSIGN(EasyUnlockPrivateCryptoDelegateStub);
46 }; 46 };
47 47
48 } // namespace 48 } // namespace
49 49
50 // static 50 // static
51 scoped_ptr<EasyUnlockPrivateCryptoDelegate> 51 std::unique_ptr<EasyUnlockPrivateCryptoDelegate>
52 EasyUnlockPrivateCryptoDelegate::Create() { 52 EasyUnlockPrivateCryptoDelegate::Create() {
53 return scoped_ptr<EasyUnlockPrivateCryptoDelegate>( 53 return std::unique_ptr<EasyUnlockPrivateCryptoDelegate>(
54 new EasyUnlockPrivateCryptoDelegateStub()); 54 new EasyUnlockPrivateCryptoDelegateStub());
55 } 55 }
56 56
57 } // namespace extensions 57 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698