| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/mount_library.h" | 5 #include "chrome/browser/chromeos/cros/mount_library.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/browser_thread.h" | |
| 10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 10 #include "content/browser/browser_thread.h" |
| 11 | 11 |
| 12 namespace chromeos { | 12 namespace chromeos { |
| 13 | 13 |
| 14 class MountLibraryImpl : public MountLibrary { | 14 class MountLibraryImpl : public MountLibrary { |
| 15 public: | 15 public: |
| 16 MountLibraryImpl() : mount_status_connection_(NULL) { | 16 MountLibraryImpl() : mount_status_connection_(NULL) { |
| 17 if (CrosLibrary::Get()->EnsureLoaded()) { | 17 if (CrosLibrary::Get()->EnsureLoaded()) { |
| 18 Init(); | 18 Init(); |
| 19 } else { | 19 } else { |
| 20 LOG(ERROR) << "Cros Library has not been loaded"; | 20 LOG(ERROR) << "Cros Library has not been loaded"; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 else | 144 else |
| 145 return new MountLibraryImpl(); | 145 return new MountLibraryImpl(); |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace chromeos | 148 } // namespace chromeos |
| 149 | 149 |
| 150 // Allows InvokeLater without adding refcounting. This class is a Singleton and | 150 // Allows InvokeLater without adding refcounting. This class is a Singleton and |
| 151 // won't be deleted until it's last InvokeLater is run. | 151 // won't be deleted until it's last InvokeLater is run. |
| 152 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::MountLibraryImpl); | 152 DISABLE_RUNNABLE_METHOD_REFCOUNT(chromeos::MountLibraryImpl); |
| 153 | 153 |
| OLD | NEW |