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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_model.cc

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/toolbar_actions_model.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_model.cc b/chrome/browser/ui/toolbar/toolbar_actions_model.cc
index 8c1a63fe2157211d0fce5246d9a55839c9824f39..4350ad250eff7d5c15fc18b76d11b328b37441d4 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.cc
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.cc
@@ -228,7 +228,7 @@ void ToolbarActionsModel::OnExtensionLoaded(
void ToolbarActionsModel::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const extensions::Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) {
+ extensions::UnloadedExtensionReason reason) {
bool was_visible_and_has_overflow =
IsActionVisible(extension->id()) && !all_icons_visible();
RemoveExtension(extension);
@@ -236,7 +236,7 @@ void ToolbarActionsModel::OnExtensionUnloaded(
// extensions, and this extension is being uninstalled, we reduce the visible
// count so that we don't pop out a previously-hidden extension.
if (was_visible_and_has_overflow &&
- reason == extensions::UnloadedExtensionInfo::REASON_UNINSTALL)
+ reason == extensions::UnloadedExtensionReason::UNINSTALL)
SetVisibleIconCount(visible_icon_count() - 1);
}
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_actions_model.h ('k') | chrome/browser/ui/toolbar/toolbar_actions_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698