| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/update_library.h" | 5 #include "chrome/browser/chromeos/cros/update_library.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 12 #include "chrome/browser/chromeos/cros/cros_library.h" | 12 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 | 14 |
| 15 using content::BrowserThread; |
| 16 |
| 15 namespace chromeos { | 17 namespace chromeos { |
| 16 | 18 |
| 17 class UpdateLibraryImpl : public UpdateLibrary { | 19 class UpdateLibraryImpl : public UpdateLibrary { |
| 18 public: | 20 public: |
| 19 UpdateLibraryImpl() : status_connection_(NULL) {} | 21 UpdateLibraryImpl() : status_connection_(NULL) {} |
| 20 | 22 |
| 21 virtual ~UpdateLibraryImpl() { | 23 virtual ~UpdateLibraryImpl() { |
| 22 if (status_connection_) { | 24 if (status_connection_) { |
| 23 chromeos::DisconnectUpdateProgress(status_connection_); | 25 chromeos::DisconnectUpdateProgress(status_connection_); |
| 24 status_connection_ = NULL; | 26 status_connection_ = NULL; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 UpdateLibrary* impl; | 138 UpdateLibrary* impl; |
| 137 if (stub) | 139 if (stub) |
| 138 impl = new UpdateLibraryStubImpl(); | 140 impl = new UpdateLibraryStubImpl(); |
| 139 else | 141 else |
| 140 impl = new UpdateLibraryImpl(); | 142 impl = new UpdateLibraryImpl(); |
| 141 impl->Init(); | 143 impl->Init(); |
| 142 return impl; | 144 return impl; |
| 143 } | 145 } |
| 144 | 146 |
| 145 } // namespace chromeos | 147 } // namespace chromeos |
| OLD | NEW |