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/extensions/crx_installer.h" | 5 #include "chrome/browser/extensions/crx_installer.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
11 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
16 #include "chrome/browser/chrome_thread.h" | 16 #include "chrome/browser/chrome_thread.h" |
17 #include "chrome/browser/extensions/convert_user_script.h" | 17 #include "chrome/browser/extensions/convert_user_script.h" |
18 #include "chrome/browser/extensions/extension_error_reporter.h" | 18 #include "chrome/browser/extensions/extension_error_reporter.h" |
19 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
20 #include "chrome/browser/shell_integration.h" | 20 #include "chrome/browser/shell_integration.h" |
21 #include "chrome/browser/web_applications/web_app.h" | 21 #include "chrome/browser/web_applications/web_app.h" |
22 #include "chrome/common/chrome_paths.h" | 22 #include "chrome/common/chrome_paths.h" |
23 #include "chrome/common/extensions/extension_file_util.h" | 23 #include "chrome/common/extensions/extension_file_util.h" |
24 #include "chrome/common/extensions/extension_constants.h" | 24 #include "chrome/common/extensions/extension_constants.h" |
25 #include "chrome/common/notification_service.h" | 25 #include "chrome/common/notification_service.h" |
26 #include "chrome/common/notification_type.h" | 26 #include "chrome/common/notification_type.h" |
27 #include "grit/browser_resources.h" | |
28 #include "grit/chromium_strings.h" | 27 #include "grit/chromium_strings.h" |
29 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 29 #include "grit/theme_resources.h" |
30 #include "third_party/skia/include/core/SkBitmap.h" | 30 #include "third_party/skia/include/core/SkBitmap.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 // Helper function to delete files. This is used to avoid ugly casts which | 33 // Helper function to delete files. This is used to avoid ugly casts which |
34 // would be necessary with PostMessage since file_util::Delete is overloaded. | 34 // would be necessary with PostMessage since file_util::Delete is overloaded. |
35 static void DeleteFileHelper(const FilePath& path, bool recursive) { | 35 static void DeleteFileHelper(const FilePath& path, bool recursive) { |
36 file_util::Delete(path, recursive); | 36 file_util::Delete(path, recursive); |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 client_->OnInstallSuccess(extension_.get()); | 354 client_->OnInstallSuccess(extension_.get()); |
355 | 355 |
356 // Tell the frontend about the installation and hand off ownership of | 356 // Tell the frontend about the installation and hand off ownership of |
357 // extension_ to it. | 357 // extension_ to it. |
358 frontend_->OnExtensionInstalled(extension_.release(), | 358 frontend_->OnExtensionInstalled(extension_.release(), |
359 allow_privilege_increase_); | 359 allow_privilege_increase_); |
360 | 360 |
361 // We're done. We don't post any more tasks to ourselves so we are deleted | 361 // We're done. We don't post any more tasks to ourselves so we are deleted |
362 // soon. | 362 // soon. |
363 } | 363 } |
OLD | NEW |