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

Unified Diff: extensions/browser/test_extensions_browser_client.h

Issue 2934293003: The chrome.lockScreen.data API implementation (Closed)
Patch Set: remove FilePath*UTF8Unsafe methods Created 3 years, 6 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..12c217f471b4d5b2b7a85f636f6e86d79ed490cb 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);
@@ -122,6 +127,8 @@ 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.
rkc 2017/06/22 18:35:48 Either move this to the right, or move the comment
+ content::BrowserContext* lock_screen_context_;
// Not owned, defaults to NULL.
ProcessManagerDelegate* process_manager_delegate_;

Powered by Google App Engine
This is Rietveld 408576698