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

Unified Diff: components/arc/arc_bridge_bootstrap.h

Issue 1684063002: Add ArcEnabled policy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@26869593
Patch Set: Added browser test. Created 4 years, 10 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: components/arc/arc_bridge_bootstrap.h
diff --git a/components/arc/arc_bridge_bootstrap.h b/components/arc/arc_bridge_bootstrap.h
index a86c97420af27a55cbd9e46d6921dfcd334a42f8..e08a5e1344bdcfa0482a44d9c1a57fb5a2e4c1a1 100644
--- a/components/arc/arc_bridge_bootstrap.h
+++ b/components/arc/arc_bridge_bootstrap.h
@@ -40,6 +40,9 @@ class ArcBridgeBootstrap {
// Stops the currently-running instance.
virtual void Stop() = 0;
+ // Set instance for testing. ArcBridgeBootstrap owns |bootstrap|
+ // until Create() is called, passes ownership to a caller.
bartfab (slow) 2016/03/02 14:45:40 Nit 1: s/passes/then passes/ Nit 2: s/ a / the /
Polina Bondarenko 2016/03/06 20:22:33 Done.
+ static void SetBootstrapForTesting(ArcBridgeBootstrap* bootstrap);
bartfab (slow) 2016/03/02 14:45:40 Use a scoped_ptr to indicate ownership transfer.
Polina Bondarenko 2016/03/06 20:22:33 Done.
protected:
ArcBridgeBootstrap();

Powered by Google App Engine
This is Rietveld 408576698