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" |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 const ExtensionDownloaderDelegate::PingResult& ping = ping_results_[*it]; | 818 const ExtensionDownloaderDelegate::PingResult& ping = ping_results_[*it]; |
819 delegate_->OnExtensionDownloadFailed(*it, error, ping, request_ids); | 819 delegate_->OnExtensionDownloadFailed(*it, error, ping, request_ids); |
820 ping_results_.erase(*it); | 820 ping_results_.erase(*it); |
821 } | 821 } |
822 } | 822 } |
823 | 823 |
824 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, | 824 void ExtensionDownloader::NotifyUpdateFound(const std::string& id, |
825 const std::string& version) { | 825 const std::string& version) { |
826 UpdateDetails updateInfo(id, Version(version)); | 826 UpdateDetails updateInfo(id, Version(version)); |
827 content::NotificationService::current()->Notify( | 827 content::NotificationService::current()->Notify( |
828 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, | 828 extensions::NOTIFICATION_EXTENSION_UPDATE_FOUND, |
829 content::NotificationService::AllBrowserContextsAndSources(), | 829 content::NotificationService::AllBrowserContextsAndSources(), |
830 content::Details<UpdateDetails>(&updateInfo)); | 830 content::Details<UpdateDetails>(&updateInfo)); |
831 } | 831 } |
832 | 832 |
833 } // namespace extensions | 833 } // namespace extensions |
OLD | NEW |