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

Unified Diff: ash/common/system/chromeos/keyboard_brightness_controller.cc

Issue 2319783002: mash: Allow a subset of D-Bus clients to be created in DBusThreadManager (Closed)
Patch Set: WIP, add DBusThreadManagerAsh and DBusThreadManagerChrome Created 4 years, 3 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: ash/common/system/chromeos/keyboard_brightness_controller.cc
diff --git a/ash/common/system/chromeos/keyboard_brightness_controller.cc b/ash/common/system/chromeos/keyboard_brightness_controller.cc
index 0d2cc1f68b73dd2d5ca58a2987349e6176a4b300..04f062db10fc1e876c6c58d7f64d82103738ef07 100644
--- a/ash/common/system/chromeos/keyboard_brightness_controller.cc
+++ b/ash/common/system/chromeos/keyboard_brightness_controller.cc
@@ -4,8 +4,9 @@
#include "ash/common/system/chromeos/keyboard_brightness_controller.h"
+#include "ash/common/dbus_thread_manager_ash.h"
#include "ash/common/wm_shell.h"
-#include "chromeos/dbus/dbus_thread_manager.h"
+// #include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/power_manager_client.h"
#include "ui/base/accelerators/accelerator.h"
@@ -18,7 +19,7 @@ void KeyboardBrightnessController::HandleKeyboardBrightnessDown(
UMA_ACCEL_KEYBOARD_BRIGHTNESS_DOWN_F6);
}
- chromeos::DBusThreadManager::Get()
+ DBusThreadManagerAsh::Get()
->GetPowerManagerClient()
->DecreaseKeyboardBrightness();
}
@@ -30,7 +31,7 @@ void KeyboardBrightnessController::HandleKeyboardBrightnessUp(
UMA_ACCEL_KEYBOARD_BRIGHTNESS_UP_F7);
}
- chromeos::DBusThreadManager::Get()
+ DBusThreadManagerAsh::Get()
->GetPowerManagerClient()
->IncreaseKeyboardBrightness();
}
« no previous file with comments | « ash/common/system/chromeos/brightness/tray_brightness.cc ('k') | ash/common/system/chromeos/power/power_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698