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

Side by Side Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/ui/views/autofill/card_unmask_prompt_view_tester_views. h" 5 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_view_tester_views. h"
6 6
7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h" 7 #include "chrome/browser/ui/views/autofill/card_unmask_prompt_views.h"
8 8
9 namespace autofill { 9 namespace autofill {
10 10
11 // static 11 // static
12 scoped_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For( 12 std::unique_ptr<CardUnmaskPromptViewTester> CardUnmaskPromptViewTester::For(
13 CardUnmaskPromptView* view) { 13 CardUnmaskPromptView* view) {
14 return scoped_ptr<CardUnmaskPromptViewTester>( 14 return std::unique_ptr<CardUnmaskPromptViewTester>(
15 new CardUnmaskPromptViewTesterViews( 15 new CardUnmaskPromptViewTesterViews(
16 static_cast<CardUnmaskPromptViews*>(view))); 16 static_cast<CardUnmaskPromptViews*>(view)));
17 } 17 }
18 18
19 // Class that facilitates testing. 19 // Class that facilitates testing.
20 CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews( 20 CardUnmaskPromptViewTesterViews::CardUnmaskPromptViewTesterViews(
21 CardUnmaskPromptViews* view) 21 CardUnmaskPromptViews* view)
22 : view_(view) { 22 : view_(view) {
23 } 23 }
24 24
25 CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() { 25 CardUnmaskPromptViewTesterViews::~CardUnmaskPromptViewTesterViews() {
26 } 26 }
27 27
28 void CardUnmaskPromptViewTesterViews::Close() { 28 void CardUnmaskPromptViewTesterViews::Close() {
29 view_->ClosePrompt(); 29 view_->ClosePrompt();
30 } 30 }
31 31
32 } // namespace autofill 32 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698