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

Unified Diff: chrome/browser/extensions/api/management/management_api_browsertest.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/management/management_api_browsertest.cc
diff --git a/chrome/browser/extensions/api/management/management_api_browsertest.cc b/chrome/browser/extensions/api/management/management_api_browsertest.cc
index 3bfa548b761e81ccad0286fa597f27f5e448fa8f..663566748dc172af9b3cb696bd1c9a2c7a36ba13 100644
--- a/chrome/browser/extensions/api/management/management_api_browsertest.cc
+++ b/chrome/browser/extensions/api/management/management_api_browsertest.cc
@@ -156,8 +156,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiBrowserTest,
// The management API should list this extension.
scoped_refptr<ManagementGetAllFunction> function =
new ManagementGetAllFunction();
- scoped_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
- function.get(), "[]", browser()));
+ std::unique_ptr<base::Value> result(
+ util::RunFunctionAndReturnSingleResult(function.get(), "[]", browser()));
base::ListValue* list;
ASSERT_TRUE(result->GetAsList(&list));
EXPECT_EQ(1U, list->GetSize());
@@ -242,10 +242,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionManagementApiEscalationTest,
DisabledReason) {
scoped_refptr<ManagementGetFunction> function =
new ManagementGetFunction();
- scoped_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
- function.get(),
- base::StringPrintf("[\"%s\"]", kId),
- browser()));
+ std::unique_ptr<base::Value> result(util::RunFunctionAndReturnSingleResult(
+ function.get(), base::StringPrintf("[\"%s\"]", kId), browser()));
ASSERT_TRUE(result.get() != NULL);
ASSERT_TRUE(result->IsType(base::Value::TYPE_DICTIONARY));
base::DictionaryValue* dict =

Powered by Google App Engine
This is Rietveld 408576698