| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/test_extensions_browser_client.h" | 5 #include "extensions/browser/test_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
| 10 #include "extensions/browser/extension_host_delegate.h" | 10 #include "extensions/browser/extension_host_delegate.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 void TestExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( | 128 void TestExtensionsBrowserClient::GetEarlyExtensionPrefsObservers( |
| 129 content::BrowserContext* context, | 129 content::BrowserContext* context, |
| 130 std::vector<ExtensionPrefsObserver*>* observers) const {} | 130 std::vector<ExtensionPrefsObserver*>* observers) const {} |
| 131 | 131 |
| 132 ProcessManagerDelegate* TestExtensionsBrowserClient::GetProcessManagerDelegate() | 132 ProcessManagerDelegate* TestExtensionsBrowserClient::GetProcessManagerDelegate() |
| 133 const { | 133 const { |
| 134 return process_manager_delegate_; | 134 return process_manager_delegate_; |
| 135 } | 135 } |
| 136 | 136 |
| 137 scoped_ptr<ExtensionHostDelegate> | 137 std::unique_ptr<ExtensionHostDelegate> |
| 138 TestExtensionsBrowserClient::CreateExtensionHostDelegate() { | 138 TestExtensionsBrowserClient::CreateExtensionHostDelegate() { |
| 139 return scoped_ptr<ExtensionHostDelegate>(); | 139 return std::unique_ptr<ExtensionHostDelegate>(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 bool TestExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { | 142 bool TestExtensionsBrowserClient::DidVersionUpdate(BrowserContext* context) { |
| 143 return false; | 143 return false; |
| 144 } | 144 } |
| 145 | 145 |
| 146 void TestExtensionsBrowserClient::PermitExternalProtocolHandler() { | 146 void TestExtensionsBrowserClient::PermitExternalProtocolHandler() { |
| 147 } | 147 } |
| 148 | 148 |
| 149 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } | 149 bool TestExtensionsBrowserClient::IsRunningInForcedAppMode() { return false; } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 164 } | 164 } |
| 165 | 165 |
| 166 void TestExtensionsBrowserClient::RegisterExtensionFunctions( | 166 void TestExtensionsBrowserClient::RegisterExtensionFunctions( |
| 167 ExtensionFunctionRegistry* registry) const {} | 167 ExtensionFunctionRegistry* registry) const {} |
| 168 | 168 |
| 169 void TestExtensionsBrowserClient::RegisterMojoServices( | 169 void TestExtensionsBrowserClient::RegisterMojoServices( |
| 170 content::RenderFrameHost* render_frame_host, | 170 content::RenderFrameHost* render_frame_host, |
| 171 const Extension* extension) const { | 171 const Extension* extension) const { |
| 172 } | 172 } |
| 173 | 173 |
| 174 scoped_ptr<RuntimeAPIDelegate> | 174 std::unique_ptr<RuntimeAPIDelegate> |
| 175 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( | 175 TestExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
| 176 content::BrowserContext* context) const { | 176 content::BrowserContext* context) const { |
| 177 return scoped_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); | 177 return std::unique_ptr<RuntimeAPIDelegate>(new TestRuntimeAPIDelegate()); |
| 178 } | 178 } |
| 179 | 179 |
| 180 const ComponentExtensionResourceManager* | 180 const ComponentExtensionResourceManager* |
| 181 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 181 TestExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
| 182 return NULL; | 182 return NULL; |
| 183 } | 183 } |
| 184 | 184 |
| 185 void TestExtensionsBrowserClient::BroadcastEventToRenderers( | 185 void TestExtensionsBrowserClient::BroadcastEventToRenderers( |
| 186 events::HistogramValue histogram_value, | 186 events::HistogramValue histogram_value, |
| 187 const std::string& event_name, | 187 const std::string& event_name, |
| 188 scoped_ptr<base::ListValue> args) {} | 188 std::unique_ptr<base::ListValue> args) {} |
| 189 | 189 |
| 190 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { | 190 net::NetLog* TestExtensionsBrowserClient::GetNetLog() { |
| 191 return NULL; | 191 return NULL; |
| 192 } | 192 } |
| 193 | 193 |
| 194 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() { | 194 ExtensionCache* TestExtensionsBrowserClient::GetExtensionCache() { |
| 195 return extension_cache_.get(); | 195 return extension_cache_.get(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { | 198 bool TestExtensionsBrowserClient::IsBackgroundUpdateAllowed() { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 212 | 212 |
| 213 scoped_refptr<update_client::UpdateClient> | 213 scoped_refptr<update_client::UpdateClient> |
| 214 TestExtensionsBrowserClient::CreateUpdateClient( | 214 TestExtensionsBrowserClient::CreateUpdateClient( |
| 215 content::BrowserContext* context) { | 215 content::BrowserContext* context) { |
| 216 return update_client_factory_.is_null() | 216 return update_client_factory_.is_null() |
| 217 ? nullptr | 217 ? nullptr |
| 218 : make_scoped_refptr(update_client_factory_.Run()); | 218 : make_scoped_refptr(update_client_factory_.Run()); |
| 219 } | 219 } |
| 220 | 220 |
| 221 } // namespace extensions | 221 } // namespace extensions |
| OLD | NEW |