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

Side by Side Diff: chrome/browser/ui/app_list/search/app_result.cc

Issue 398083002: Add "UninstallReason" parameter to ExtensionRegistryObserver::OnExtensionUninstalled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix header file. Created 6 years, 5 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
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/search/app_result.h" 5 #include "chrome/browser/ui/app_list/search/app_result.h"
6 6
7 #include "chrome/browser/extensions/extension_service.h" 7 #include "chrome/browser/extensions/extension_service.h"
8 #include "chrome/browser/extensions/extension_util.h" 8 #include "chrome/browser/extensions/extension_util.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/app_list/app_context_menu.h" 10 #include "chrome/browser/ui/app_list/app_context_menu.h"
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 extension_enable_flow_.reset(); 185 extension_enable_flow_.reset();
186 controller_->OnCloseChildDialog(); 186 controller_->OnCloseChildDialog();
187 } 187 }
188 188
189 void AppResult::OnExtensionLoaded(content::BrowserContext* browser_context, 189 void AppResult::OnExtensionLoaded(content::BrowserContext* browser_context,
190 const extensions::Extension* extension) { 190 const extensions::Extension* extension) {
191 UpdateIcon(); 191 UpdateIcon();
192 } 192 }
193 193
194 void AppResult::OnExtensionUninstalled(content::BrowserContext* browser_context, 194 void AppResult::OnExtensionUninstalled(content::BrowserContext* browser_context,
195 const extensions::Extension* extension) { 195 const extensions::Extension* extension,
196 extensions::UninstallReason reason) {
196 if (extension->id() != app_id_) 197 if (extension->id() != app_id_)
197 return; 198 return;
198 199
199 NotifyItemUninstalled(); 200 NotifyItemUninstalled();
200 } 201 }
201 202
202 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { 203 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) {
203 DCHECK_EQ(extension_registry_, registry); 204 DCHECK_EQ(extension_registry_, registry);
204 StopObservingExtensionRegistry(); 205 StopObservingExtensionRegistry();
205 } 206 }
206 207
207 } // namespace app_list 208 } // namespace app_list
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/search/app_result.h ('k') | chrome/browser/ui/app_list/search/app_search_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698