OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/chromeos/cros/brightness_library.h" | 5 #include "chrome/browser/chromeos/cros/brightness_library.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "chrome/browser/browser_thread.h" | |
10 #include "chrome/browser/chromeos/brightness_bubble.h" | 9 #include "chrome/browser/chromeos/brightness_bubble.h" |
11 #include "chrome/browser/chromeos/volume_bubble.h" | 10 #include "chrome/browser/chromeos/volume_bubble.h" |
12 #include "chrome/browser/chromeos/cros/cros_library.h" | 11 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 12 #include "content/browser/browser_thread.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 class BrightnessLibraryImpl : public BrightnessLibrary { | 16 class BrightnessLibraryImpl : public BrightnessLibrary { |
17 public: | 17 public: |
18 BrightnessLibraryImpl() : brightness_connection_(NULL) { | 18 BrightnessLibraryImpl() : brightness_connection_(NULL) { |
19 if (CrosLibrary::Get()->EnsureLoaded()) | 19 if (CrosLibrary::Get()->EnsureLoaded()) |
20 Init(); | 20 Init(); |
21 } | 21 } |
22 | 22 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 if (stub) | 84 if (stub) |
85 return new BrightnessLibraryStubImpl(); | 85 return new BrightnessLibraryStubImpl(); |
86 else | 86 else |
87 return new BrightnessLibraryImpl(); | 87 return new BrightnessLibraryImpl(); |
88 } | 88 } |
89 | 89 |
90 } // namespace chromeos | 90 } // namespace chromeos |
91 | 91 |
92 // Needed for NewRunnableMethod() call above. | 92 // Needed for NewRunnableMethod() call above. |
93 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::BrightnessLibraryImpl); | 93 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::BrightnessLibraryImpl); |
OLD | NEW |