| 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/google/google_update.h" | 5 #include "chrome/browser/google/google_update.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/scoped_comptr_win.h" | 13 #include "base/scoped_comptr_win.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #include "base/thread.h" | 16 #include "base/threading/thread.h" |
| 17 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
| 18 #include "chrome/browser/browser_thread.h" | 18 #include "chrome/browser/browser_thread.h" |
| 19 #include "chrome/installer/util/browser_distribution.h" | 19 #include "chrome/installer/util/browser_distribution.h" |
| 20 #include "chrome/installer/util/google_update_constants.h" | 20 #include "chrome/installer/util/google_update_constants.h" |
| 21 #include "chrome/installer/util/helper.h" | 21 #include "chrome/installer/util/helper.h" |
| 22 #include "chrome/installer/util/install_util.h" | 22 #include "chrome/installer/util/install_util.h" |
| 23 #include "views/window/window.h" | 23 #include "views/window/window.h" |
| 24 #include "google_update_idl_i.c" | 24 #include "google_update_idl_i.c" |
| 25 | 25 |
| 26 using views::Window; | 26 using views::Window; |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 } | 329 } |
| 330 | 330 |
| 331 bool GoogleUpdate::ReportFailure(HRESULT hr, GoogleUpdateErrorCode error_code, | 331 bool GoogleUpdate::ReportFailure(HRESULT hr, GoogleUpdateErrorCode error_code, |
| 332 MessageLoop* main_loop) { | 332 MessageLoop* main_loop) { |
| 333 NOTREACHED() << "Communication with Google Update failed: " << hr | 333 NOTREACHED() << "Communication with Google Update failed: " << hr |
| 334 << " error: " << error_code; | 334 << " error: " << error_code; |
| 335 main_loop->PostTask(FROM_HERE, NewRunnableMethod(this, | 335 main_loop->PostTask(FROM_HERE, NewRunnableMethod(this, |
| 336 &GoogleUpdate::ReportResults, UPGRADE_ERROR, error_code)); | 336 &GoogleUpdate::ReportResults, UPGRADE_ERROR, error_code)); |
| 337 return false; | 337 return false; |
| 338 } | 338 } |
| OLD | NEW |