| Index: chrome/browser/extensions/api/preference/preference_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/preference/preference_apitest.cc b/chrome/browser/extensions/api/preference/preference_apitest.cc
|
| index f6e7e40c537e82963a5b97e85264072b647316cd..97f5299f2db910f0904690f895e5572180b631f0 100644
|
| --- a/chrome/browser/extensions/api/preference/preference_apitest.cc
|
| +++ b/chrome/browser/extensions/api/preference/preference_apitest.cc
|
| @@ -2,9 +2,10 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <memory>
|
| +
|
| #include "base/bind_helpers.h"
|
| #include "base/location.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/thread_task_runner_handle.h"
|
| @@ -94,7 +95,7 @@ class ExtensionPreferenceApiTest : public ExtensionApiTest {
|
| // BrowserProcess::Shutdown() needs to be called in a message loop, so we
|
| // post a task to release the keep alive, then run the message loop.
|
| base::ThreadTaskRunnerHandle::Get()->PostTask(
|
| - FROM_HERE, base::Bind(&scoped_ptr<ScopedKeepAlive>::reset,
|
| + FROM_HERE, base::Bind(&std::unique_ptr<ScopedKeepAlive>::reset,
|
| base::Unretained(&keep_alive_), nullptr));
|
| content::RunAllPendingInMessageLoop();
|
|
|
| @@ -102,7 +103,7 @@ class ExtensionPreferenceApiTest : public ExtensionApiTest {
|
| }
|
|
|
| Profile* profile_;
|
| - scoped_ptr<ScopedKeepAlive> keep_alive_;
|
| + std::unique_ptr<ScopedKeepAlive> keep_alive_;
|
| };
|
|
|
| // http://crbug.com/177163
|
|
|