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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Enum class Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ash/launcher/launcher_extension_app_updater.h" 5 #include "chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h"
6 6
7 #include "chrome/browser/chromeos/extensions/gfx_utils.h" 7 #include "chrome/browser/chromeos/extensions/gfx_utils.h"
8 #include "chrome/browser/chromeos/profiles/profile_helper.h" 8 #include "chrome/browser/chromeos/profiles/profile_helper.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h" 10 #include "chrome/browser/ui/app_list/arc/arc_app_list_prefs.h"
(...skipping 20 matching lines...) Expand all
31 31
32 void LauncherExtensionAppUpdater::OnExtensionLoaded( 32 void LauncherExtensionAppUpdater::OnExtensionLoaded(
33 content::BrowserContext* browser_context, 33 content::BrowserContext* browser_context,
34 const extensions::Extension* extension) { 34 const extensions::Extension* extension) {
35 delegate()->OnAppInstalled(browser_context, extension->id()); 35 delegate()->OnAppInstalled(browser_context, extension->id());
36 } 36 }
37 37
38 void LauncherExtensionAppUpdater::OnExtensionUnloaded( 38 void LauncherExtensionAppUpdater::OnExtensionUnloaded(
39 content::BrowserContext* browser_context, 39 content::BrowserContext* browser_context,
40 const extensions::Extension* extension, 40 const extensions::Extension* extension,
41 extensions::UnloadedExtensionInfo::Reason reason) { 41 extensions::UnloadedExtensionReason reason) {
42 if (reason == extensions::UnloadedExtensionInfo::REASON_UNINSTALL) 42 if (reason == extensions::UnloadedExtensionReason::REASON_UNINSTALL)
43 delegate()->OnAppUninstalledPrepared(browser_context, extension->id()); 43 delegate()->OnAppUninstalledPrepared(browser_context, extension->id());
44 else 44 else
45 delegate()->OnAppUpdated(browser_context, extension->id()); 45 delegate()->OnAppUpdated(browser_context, extension->id());
46 } 46 }
47 47
48 void LauncherExtensionAppUpdater::OnExtensionUninstalled( 48 void LauncherExtensionAppUpdater::OnExtensionUninstalled(
49 content::BrowserContext* browser_context, 49 content::BrowserContext* browser_context,
50 const extensions::Extension* extension, 50 const extensions::Extension* extension,
51 extensions::UninstallReason reason) { 51 extensions::UninstallReason reason) {
52 delegate()->OnAppUninstalled(browser_context, extension->id()); 52 delegate()->OnAppUninstalled(browser_context, extension->id());
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 void LauncherExtensionAppUpdater::UpdateEquivalentHostedApp( 107 void LauncherExtensionAppUpdater::UpdateEquivalentHostedApp(
108 const std::string& arc_package_name) { 108 const std::string& arc_package_name) {
109 const std::vector<std::string> extension_ids = 109 const std::vector<std::string> extension_ids =
110 extensions::util::GetEquivalentInstalledExtensions(browser_context(), 110 extensions::util::GetEquivalentInstalledExtensions(browser_context(),
111 arc_package_name); 111 arc_package_name);
112 for (const auto& iter : extension_ids) 112 for (const auto& iter : extension_ids)
113 UpdateHostedApp(iter); 113 UpdateHostedApp(iter);
114 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698