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 "content/public/browser/browser_context.h" | 9 #include "content/public/browser/browser_context.h" |
9 #include "extensions/browser/extension_host_delegate.h" | 10 #include "extensions/browser/extension_host_delegate.h" |
10 #include "extensions/browser/test_runtime_api_delegate.h" | 11 #include "extensions/browser/test_runtime_api_delegate.h" |
11 #include "extensions/browser/updater/null_extension_cache.h" | 12 #include "extensions/browser/updater/null_extension_cache.h" |
12 | 13 |
13 using content::BrowserContext; | 14 using content::BrowserContext; |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 TestExtensionsBrowserClient::TestExtensionsBrowserClient( | 18 TestExtensionsBrowserClient::TestExtensionsBrowserClient( |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 212 |
212 scoped_refptr<update_client::UpdateClient> | 213 scoped_refptr<update_client::UpdateClient> |
213 TestExtensionsBrowserClient::CreateUpdateClient( | 214 TestExtensionsBrowserClient::CreateUpdateClient( |
214 content::BrowserContext* context) { | 215 content::BrowserContext* context) { |
215 return update_client_factory_.is_null() | 216 return update_client_factory_.is_null() |
216 ? nullptr | 217 ? nullptr |
217 : make_scoped_refptr(update_client_factory_.Run()); | 218 : make_scoped_refptr(update_client_factory_.Run()); |
218 } | 219 } |
219 | 220 |
220 } // namespace extensions | 221 } // namespace extensions |
OLD | NEW |