OLD | NEW |
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 "chrome/browser/extensions/app_host/update.h" | 5 #include "apps/app_host/update.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_version_info.h" | 9 #include "base/file_version_info.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/process_util.h" | 12 #include "base/process_util.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
15 #include "base/version.h" | 15 #include "base/version.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 Version app_host_version(GetAppHostVersion()); | 93 Version app_host_version(GetAppHostVersion()); |
94 if (app_host_version.CompareTo(new_version) < 0) { | 94 if (app_host_version.CompareTo(new_version) < 0) { |
95 LOG(INFO) << "Updating App Launcher from " << app_host_version.GetString() | 95 LOG(INFO) << "Updating App Launcher from " << app_host_version.GetString() |
96 << " to " << new_version.GetString(); | 96 << " to " << new_version.GetString(); |
97 if (!LaunchAppHostUpdate()) | 97 if (!LaunchAppHostUpdate()) |
98 LOG(ERROR) << "Failed to launch App Launcher update."; | 98 LOG(ERROR) << "Failed to launch App Launcher update."; |
99 } | 99 } |
100 } | 100 } |
101 | 101 |
102 } // namespace app_host | 102 } // namespace app_host |
OLD | NEW |