Index: chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc |
diff --git a/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc b/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc |
index cfa1d2785871d5e0e793b02c9ab59cfb59077dda..b9f5212178edf2ef86a5dd6a3431d665c6b96c54 100644 |
--- a/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc |
+++ b/chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc |
@@ -7,6 +7,7 @@ |
#include <utility> |
#include "base/lazy_instance.h" |
+#include "base/memory/ptr_util.h" |
#include "base/values.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/signin/chrome_proximity_auth_client.h" |
@@ -54,7 +55,7 @@ ScreenlockPrivateGetLockedFunction::ScreenlockPrivateGetLockedFunction() {} |
ScreenlockPrivateGetLockedFunction::~ScreenlockPrivateGetLockedFunction() {} |
bool ScreenlockPrivateGetLockedFunction::RunAsync() { |
- SetResult(new base::FundamentalValue( |
+ SetResult(base::MakeUnique<base::FundamentalValue>( |
proximity_auth::ScreenlockBridge::Get()->IsLocked())); |
SendResponse(error_.empty()); |
return true; |