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

Unified Diff: chrome/browser/extensions/api/identity/identity_apitest.cc

Issue 2152373003: [Extensions] Code Cleanup - Remove redundant smart-ptr get()s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/identity/identity_apitest.cc
diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc
index c6d1abd972f5cfe39e303fcbab1f8c0d9c359e57..ed567e1988545caf83a65444ebcfbd50e757c8cf 100644
--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
@@ -97,7 +97,7 @@ class SendResponseDelegate
bool GetResponse() {
EXPECT_TRUE(HasResponse());
- return *response_.get();
+ return *response_;
}
void OnSendResponse(UIThreadExtensionFunction* function,
@@ -626,7 +626,7 @@ class IdentityGetProfileUserInfoFunctionTest : public IdentityTestWithSignin {
func->set_extension(test_util::CreateEmptyExtension(kExtensionId).get());
std::unique_ptr<base::Value> value(
utils::RunFunctionAndReturnSingleResult(func.get(), "[]", browser()));
- return api::identity::ProfileUserInfo::FromValue(*value.get());
+ return api::identity::ProfileUserInfo::FromValue(*value);
}
std::unique_ptr<api::identity::ProfileUserInfo>
@@ -636,7 +636,7 @@ class IdentityGetProfileUserInfoFunctionTest : public IdentityTestWithSignin {
func->set_extension(CreateExtensionWithEmailPermission());
std::unique_ptr<base::Value> value(
utils::RunFunctionAndReturnSingleResult(func.get(), "[]", browser()));
- return api::identity::ProfileUserInfo::FromValue(*value.get());
+ return api::identity::ProfileUserInfo::FromValue(*value);
}
private:

Powered by Google App Engine
This is Rietveld 408576698