Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: extensions/browser/test_extensions_browser_client.h

Issue 2934293003: The chrome.lockScreen.data API implementation (Closed)
Patch Set: switch to BackendTaskRunner Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/test_extensions_browser_client.h
diff --git a/extensions/browser/test_extensions_browser_client.h b/extensions/browser/test_extensions_browser_client.h
index b052034d8346306db560092daacf00e4d6086b44..dd522a85a4ba8af0aa4c54bf64c9984b2897b49f 100644
--- a/extensions/browser/test_extensions_browser_client.h
+++ b/extensions/browser/test_extensions_browser_client.h
@@ -5,6 +5,7 @@
#ifndef EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
#define EXTENSIONS_BROWSER_TEST_EXTENSIONS_BROWSER_CLIENT_H_
+#include <memory>
#include <string>
#include <utility>
#include <vector>
@@ -40,6 +41,10 @@ class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
extension_cache_ = std::move(extension_cache);
}
+ void set_lock_screen_context(content::BrowserContext* context) {
+ lock_screen_context_ = context;
+ }
+
// Sets a factory to respond to calls of the CreateUpdateClient method.
void SetUpdateClientFactory(
const base::Callback<update_client::UpdateClient*(void)>& factory);
@@ -120,13 +125,17 @@ class TestExtensionsBrowserClient : public ExtensionsBrowserClient {
}
private:
- content::BrowserContext* main_context_; // Not owned.
- content::BrowserContext* incognito_context_; // Not owned, defaults to NULL.
-
- // Not owned, defaults to NULL.
+ // Not owned.
+ content::BrowserContext* main_context_;
+ // Not owned, defaults to nullptr.
+ content::BrowserContext* incognito_context_;
+ // Not owned, defaults to nullptr.
+ content::BrowserContext* lock_screen_context_;
+
+ // Not owned, defaults to nullptr.
ProcessManagerDelegate* process_manager_delegate_;
- // Not owned, defaults to NULL.
+ // Not owned, defaults to nullptr.
ExtensionSystemProvider* extension_system_factory_;
std::unique_ptr<ExtensionCache> extension_cache_;
« no previous file with comments | « extensions/browser/api/lock_screen_data/operation_result.h ('k') | extensions/browser/test_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698