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/updater/extension_downloader.h" | 5 #include "chrome/browser/extensions/updater/extension_downloader.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_handle.h" | |
15 #include "base/metrics/histogram.h" | 14 #include "base/metrics/histogram.h" |
16 #include "base/metrics/sparse_histogram.h" | 15 #include "base/metrics/sparse_histogram.h" |
17 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
18 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
19 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
20 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
21 #include "base/time/time.h" | 20 #include "base/time/time.h" |
22 #include "base/version.h" | 21 #include "base/version.h" |
23 #include "chrome/browser/chrome_notification_types.h" | 22 #include "chrome/browser/chrome_notification_types.h" |
24 #include "chrome/browser/extensions/updater/extension_cache.h" | 23 #include "chrome/browser/extensions/updater/extension_cache.h" |
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, | 824 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, |
826 const std::string& version) { | 825 const std::string& version) { |
827 UpdateDetails updateInfo(id, Version(version)); | 826 UpdateDetails updateInfo(id, Version(version)); |
828 content::NotificationService::current()->Notify( | 827 content::NotificationService::current()->Notify( |
829 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, | 828 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, |
830 content::NotificationService::AllBrowserContextsAndSources(), | 829 content::NotificationService::AllBrowserContextsAndSources(), |
831 content::Details<UpdateDetails>(&updateInfo)); | 830 content::Details<UpdateDetails>(&updateInfo)); |
832 } | 831 } |
833 | 832 |
834 } // namespace extensions | 833 } // namespace extensions |
OLD | NEW |