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

Unified Diff: chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc
diff --git a/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc b/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc
index 432b1d0aebfd73e7c66d1ca33e13a193320f8aff..15e165e14f380462e50b472986f51695c6544d19 100644
--- a/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc
+++ b/chrome/browser/ui/autofill/save_card_bubble_controller_impl_unittest.cc
@@ -64,11 +64,11 @@ class SaveCardBubbleControllerImplTest : public BrowserWithTestWindowTest {
}
void SetLegalMessage(const std::string& message_json) {
- scoped_ptr<base::Value> value(base::JSONReader::Read(message_json));
+ std::unique_ptr<base::Value> value(base::JSONReader::Read(message_json));
ASSERT_TRUE(value);
base::DictionaryValue* dictionary;
ASSERT_TRUE(value->GetAsDictionary(&dictionary));
- scoped_ptr<base::DictionaryValue> legal_message =
+ std::unique_ptr<base::DictionaryValue> legal_message =
dictionary->CreateDeepCopy();
controller()->ShowBubbleForUpload(CreditCard(), std::move(legal_message),
base::Bind(&SaveCardCallback));
@@ -117,7 +117,7 @@ class SaveCardBubbleControllerImplTest : public BrowserWithTestWindowTest {
}
private:
- scoped_ptr<TestSaveCardBubbleView> save_card_bubble_view_;
+ std::unique_ptr<TestSaveCardBubbleView> save_card_bubble_view_;
};
static void SaveCardCallback() {}

Powered by Google App Engine
This is Rietveld 408576698