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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 | 229 |
230 switch (extension_type) { | 230 switch (extension_type) { |
231 case Extension::TYPE_THEME: | 231 case Extension::TYPE_THEME: |
232 ++url_stats_.theme_count; | 232 ++url_stats_.theme_count; |
233 break; | 233 break; |
234 case Extension::TYPE_EXTENSION: | 234 case Extension::TYPE_EXTENSION: |
235 case Extension::TYPE_USER_SCRIPT: | 235 case Extension::TYPE_USER_SCRIPT: |
236 ++url_stats_.extension_count; | 236 ++url_stats_.extension_count; |
237 break; | 237 break; |
238 case Extension::TYPE_HOSTED_APP: | 238 case Extension::TYPE_HOSTED_APP: |
239 case Extension::TYPE_PACKAGED_APP: | 239 case Extension::TYPE_LEGACY_PACKAGED_APP: |
240 ++url_stats_.app_count; | 240 ++url_stats_.app_count; |
241 break; | 241 break; |
242 case Extension::TYPE_UNKNOWN: | 242 case Extension::TYPE_UNKNOWN: |
243 default: | 243 default: |
244 ++url_stats_.pending_count; | 244 ++url_stats_.pending_count; |
245 break; | 245 break; |
246 } | 246 } |
247 | 247 |
248 std::vector<GURL> update_urls; | 248 std::vector<GURL> update_urls; |
249 update_urls.push_back(update_url); | 249 update_urls.push_back(update_url); |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 } | 663 } |
664 | 664 |
665 void ExtensionDownloader::NotifyUpdateFound(const std::string& id) { | 665 void ExtensionDownloader::NotifyUpdateFound(const std::string& id) { |
666 content::NotificationService::current()->Notify( | 666 content::NotificationService::current()->Notify( |
667 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, | 667 chrome::NOTIFICATION_EXTENSION_UPDATE_FOUND, |
668 content::NotificationService::AllBrowserContextsAndSources(), | 668 content::NotificationService::AllBrowserContextsAndSources(), |
669 content::Details<const std::string>(&id)); | 669 content::Details<const std::string>(&id)); |
670 } | 670 } |
671 | 671 |
672 } // namespace extensions | 672 } // namespace extensions |
OLD | NEW |