OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/apps/drive/drive_app_converter.h" | 5 #include "chrome/browser/apps/drive/drive_app_converter.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <set> | 10 #include <set> |
9 | 11 |
10 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
13 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/extensions/crx_installer.h" | 17 #include "chrome/browser/extensions/crx_installer.h" |
15 #include "chrome/browser/extensions/install_tracker.h" | 18 #include "chrome/browser/extensions/install_tracker.h" |
16 #include "chrome/browser/image_decoder.h" | 19 #include "chrome/browser/image_decoder.h" |
17 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
18 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
19 #include "extensions/browser/extension_system.h" | 22 #include "extensions/browser/extension_system.h" |
20 #include "extensions/common/constants.h" | 23 #include "extensions/common/constants.h" |
21 #include "net/base/load_flags.h" | 24 #include "net/base/load_flags.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 return; | 192 return; |
190 } | 193 } |
191 | 194 |
192 extension_ = crx_installer_->extension(); | 195 extension_ = crx_installer_->extension(); |
193 is_new_install_ = success && !crx_installer_->current_version().IsValid(); | 196 is_new_install_ = success && !crx_installer_->current_version().IsValid(); |
194 PostInstallCleanUp(); | 197 PostInstallCleanUp(); |
195 | 198 |
196 base::ResetAndReturn(&finished_callback_).Run(this, success); | 199 base::ResetAndReturn(&finished_callback_).Run(this, success); |
197 // |finished_callback_| could delete this. | 200 // |finished_callback_| could delete this. |
198 } | 201 } |
OLD | NEW |