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 "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
9 #include "extensions/browser/extension_host_delegate.h" | 9 #include "extensions/browser/extension_host_delegate.h" |
10 #include "extensions/browser/test_runtime_api_delegate.h" | 10 #include "extensions/browser/test_runtime_api_delegate.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
193 const std::string& min_version) { | 193 const std::string& min_version) { |
194 return true; | 194 return true; |
195 } | 195 } |
196 | 196 |
197 ExtensionWebContentsObserver* | 197 ExtensionWebContentsObserver* |
198 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( | 198 TestExtensionsBrowserClient::GetExtensionWebContentsObserver( |
199 content::WebContents* web_contents) { | 199 content::WebContents* web_contents) { |
200 return nullptr; | 200 return nullptr; |
201 } | 201 } |
202 | 202 |
203 scoped_refptr<update_client::UpdateClient> | |
204 TestExtensionsBrowserClient::CreateUpdateClient( | |
205 content::BrowserContext* context) { | |
206 return update_client_.Pass(); | |
Sorin Jianu
2015/10/02 00:05:10
How does this work? I see that update_client_ inst
asargent_no_longer_on_chrome
2015/10/06 21:31:17
This is very similar to using .Pass with something
Sorin Jianu
2015/10/08 22:57:54
Correct. I am concerned that successive calls for
asargent_no_longer_on_chrome
2015/10/14 17:04:31
Ok, I've rewritten this so that TestExtensionsBrow
Sorin Jianu
2015/10/14 20:37:09
Acknowledged.
| |
207 } | |
208 | |
203 } // namespace extensions | 209 } // namespace extensions |
OLD | NEW |