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

Side by Side Diff: chromeos/dbus/power_manager_client.cc

Issue 19468003: Use a direct include of the message_loop header in chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/power_manager_client.h" 5 #include "chromeos/dbus/power_manager_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/threading/platform_thread.h" 18 #include "base/threading/platform_thread.h"
19 #include "base/time/time.h" 19 #include "base/time/time.h"
20 #include "base/timer/timer.h" 20 #include "base/timer/timer.h"
21 #include "chromeos/chromeos_switches.h" 21 #include "chromeos/chromeos_switches.h"
22 #include "chromeos/dbus/power_manager/input_event.pb.h" 22 #include "chromeos/dbus/power_manager/input_event.pb.h"
23 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h" 23 #include "chromeos/dbus/power_manager/peripheral_battery_status.pb.h"
24 #include "chromeos/dbus/power_manager/policy.pb.h" 24 #include "chromeos/dbus/power_manager/policy.pb.h"
25 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h" 25 #include "chromeos/dbus/power_manager/power_supply_properties.pb.h"
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 PowerManagerClient* PowerManagerClient::Create( 858 PowerManagerClient* PowerManagerClient::Create(
859 DBusClientImplementationType type, 859 DBusClientImplementationType type,
860 dbus::Bus* bus) { 860 dbus::Bus* bus) {
861 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) 861 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION)
862 return new PowerManagerClientImpl(bus); 862 return new PowerManagerClientImpl(bus);
863 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); 863 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type);
864 return new PowerManagerClientStubImpl(); 864 return new PowerManagerClientStubImpl();
865 } 865 }
866 866
867 } // namespace chromeos 867 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/modem_messaging_client_unittest.cc ('k') | chromeos/dbus/shill_client_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698