Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: chrome/browser/extensions/updater/extension_downloader.cc

Issue 425303002: Move extension notifications to extensions/browser/notification_types.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (extension-notifications) rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/extension_cache_impl.cc ('k') | chrome/browser/extensions/updater/extension_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698