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/extensions/crx_installer.h" | 5 #include "chrome/browser/extensions/crx_installer.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "base/scoped_temp_dir.h" | 14 #include "base/scoped_temp_dir.h" |
15 #include "base/stl_util-inl.h" | 15 #include "base/stl_util.h" |
16 #include "base/stringprintf.h" | 16 #include "base/stringprintf.h" |
17 #include "base/task.h" | 17 #include "base/task.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "base/utf_string_conversions.h" | 20 #include "base/utf_string_conversions.h" |
21 #include "base/version.h" | 21 #include "base/version.h" |
22 #include "chrome/browser/browser_process.h" | 22 #include "chrome/browser/browser_process.h" |
23 #include "chrome/browser/extensions/convert_user_script.h" | 23 #include "chrome/browser/extensions/convert_user_script.h" |
24 #include "chrome/browser/extensions/convert_web_app.h" | 24 #include "chrome/browser/extensions/convert_web_app.h" |
25 #include "chrome/browser/extensions/extension_error_reporter.h" | 25 #include "chrome/browser/extensions/extension_error_reporter.h" |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // Some users (such as the download shelf) need to know when a | 570 // Some users (such as the download shelf) need to know when a |
571 // CRXInstaller is done. Listening for the EXTENSION_* events | 571 // CRXInstaller is done. Listening for the EXTENSION_* events |
572 // is problematic because they don't know anything about the | 572 // is problematic because they don't know anything about the |
573 // extension before it is unpacked, so they can not filter based | 573 // extension before it is unpacked, so they can not filter based |
574 // on the extension. | 574 // on the extension. |
575 NotificationService::current()->Notify( | 575 NotificationService::current()->Notify( |
576 chrome::NOTIFICATION_CRX_INSTALLER_DONE, | 576 chrome::NOTIFICATION_CRX_INSTALLER_DONE, |
577 Source<CrxInstaller>(this), | 577 Source<CrxInstaller>(this), |
578 NotificationService::NoDetails()); | 578 NotificationService::NoDetails()); |
579 } | 579 } |
OLD | NEW |