| Index: extensions/browser/extension_throttle_manager.h
|
| diff --git a/extensions/browser/extension_throttle_manager.h b/extensions/browser/extension_throttle_manager.h
|
| index 5a5b2845c5231f3c6e7875a39d560d39e0d83d01..14c37baf4c012f50dd1627afe7edd0b920656700 100644
|
| --- a/extensions/browser/extension_throttle_manager.h
|
| +++ b/extensions/browser/extension_throttle_manager.h
|
| @@ -6,11 +6,11 @@
|
| #define EXTENSIONS_BROWSER_EXTENSION_THROTTLE_MANAGER_H_
|
|
|
| #include <map>
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "base/macros.h"
|
| #include "base/memory/ref_counted.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "base/threading/non_thread_safe.h"
|
| #include "base/threading/platform_thread.h"
|
| #include "extensions/browser/extension_throttle_entry.h"
|
| @@ -49,7 +49,7 @@ class ExtensionThrottleManager
|
|
|
| // Creates a content::ResourceThrottle for |request| to prevent extensions
|
| // from requesting a URL too often, if such a throttle is needed.
|
| - scoped_ptr<content::ResourceThrottle> MaybeCreateThrottle(
|
| + std::unique_ptr<content::ResourceThrottle> MaybeCreateThrottle(
|
| const net::URLRequest* request);
|
|
|
| // TODO(xunjieli): Remove this method and replace with
|
| @@ -64,7 +64,8 @@ class ExtensionThrottleManager
|
| scoped_refptr<ExtensionThrottleEntryInterface> RegisterRequestUrl(
|
| const GURL& url);
|
|
|
| - void SetBackoffPolicyForTests(scoped_ptr<net::BackoffEntry::Policy> policy);
|
| + void SetBackoffPolicyForTests(
|
| + std::unique_ptr<net::BackoffEntry::Policy> policy);
|
|
|
| // Registers a new entry in this service and overrides the existing entry (if
|
| // any) for the URL. The service will hold a reference to the entry.
|
| @@ -175,7 +176,7 @@ class ExtensionThrottleManager
|
| bool ignore_user_gesture_load_flag_for_tests_;
|
|
|
| // This is NULL when it is not set for tests.
|
| - scoped_ptr<net::BackoffEntry::Policy> backoff_policy_for_tests_;
|
| + std::unique_ptr<net::BackoffEntry::Policy> backoff_policy_for_tests_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ExtensionThrottleManager);
|
| };
|
|
|