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

Side by Side Diff: chrome/browser/ui/app_list/recommended_apps.cc

Issue 72463002: Move InstallObserver::OnBeginExtensionInstall parameters to a struct (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/app_list/recommended_apps.h" 5 #include "chrome/browser/ui/app_list/recommended_apps.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 const bool changed = apps_.size() != new_recommends.size() || 92 const bool changed = apps_.size() != new_recommends.size() ||
93 !std::equal(apps_.begin(), apps_.end(), new_recommends.begin()); 93 !std::equal(apps_.begin(), apps_.end(), new_recommends.begin());
94 if (changed) { 94 if (changed) {
95 apps_.swap(new_recommends); 95 apps_.swap(new_recommends);
96 FOR_EACH_OBSERVER( 96 FOR_EACH_OBSERVER(
97 RecommendedAppsObserver, observers_, OnRecommendedAppsChanged()); 97 RecommendedAppsObserver, observers_, OnRecommendedAppsChanged());
98 } 98 }
99 } 99 }
100 100
101 void RecommendedApps::OnBeginExtensionInstall(const std::string& extension_id, 101 void RecommendedApps::OnBeginExtensionInstall(
102 const std::string& extension_name, 102 const ExtensionInstallParams& params) {}
103 const gfx::ImageSkia& installing_icon,
104 bool is_app,
105 bool is_platform_app) {}
106 103
107 void RecommendedApps::OnDownloadProgress(const std::string& extension_id, 104 void RecommendedApps::OnDownloadProgress(const std::string& extension_id,
108 int percent_downloaded) {} 105 int percent_downloaded) {}
109 106
110 void RecommendedApps::OnInstallFailure(const std::string& extension_id) {} 107 void RecommendedApps::OnInstallFailure(const std::string& extension_id) {}
111 108
112 void RecommendedApps::OnExtensionInstalled( 109 void RecommendedApps::OnExtensionInstalled(
113 const extensions::Extension* extension) { 110 const extensions::Extension* extension) {
114 Update(); 111 Update();
115 } 112 }
(...skipping 14 matching lines...) Expand all
130 } 127 }
131 128
132 void RecommendedApps::OnAppsReordered() {} 129 void RecommendedApps::OnAppsReordered() {}
133 130
134 void RecommendedApps::OnAppInstalledToAppList( 131 void RecommendedApps::OnAppInstalledToAppList(
135 const std::string& extension_id) {} 132 const std::string& extension_id) {}
136 133
137 void RecommendedApps::OnShutdown() {} 134 void RecommendedApps::OnShutdown() {}
138 135
139 } // namespace app_list 136 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/recommended_apps.h ('k') | chrome/browser/ui/app_list/search/app_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698