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

Unified Diff: chromeos/dbus/dbus_thread_manager.h

Issue 444263002: Added switch that let us 'un-stub' certain dbus clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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: chromeos/dbus/dbus_thread_manager.h
diff --git a/chromeos/dbus/dbus_thread_manager.h b/chromeos/dbus/dbus_thread_manager.h
index f225a5e14ca74b3c1ad78b3df97b688de0865bbd..760c81251b0aab76f84349f5ac0ecf7f3e6044c8 100644
--- a/chromeos/dbus/dbus_thread_manager.h
+++ b/chromeos/dbus/dbus_thread_manager.h
@@ -101,11 +101,18 @@ class CHROMEOS_EXPORT DBusThreadManager {
// Shutdown(). Does not create any Fake client implementations.
static void InitializeForTesting(DBusThreadManager* dbus_thread_manager);
+ // Initialize global thread manager instance.
+ static void InitializeRegular();
hashimoto 2014/08/08 02:06:16 Do InitilizeRegular() and InitializeWithPartialStu
zel 2014/08/08 19:00:15 Done.
+
// Initialize with stub implementations for tests, creating a complete set
// of fake/stub client implementations. Also initializes a default set of
// fake Shill devices and services, customizable with switches::kShillStub.
static void InitializeWithStub();
+ // Initialize with stub implementations for only certain clients that are
+ // not included in comma-separated |unstub_clients| list.
+ static void InitializeWithPartialStub(const std::string& unstub_clients);
+
// Returns true if DBusThreadManager has been initialized. Call this to
// avoid initializing + shutting down DBusThreadManager more than once.
static bool IsInitialized();

Powered by Google App Engine
This is Rietveld 408576698