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

Unified Diff: chrome/browser/ui/browser.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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 1ded5c36a6199424c812ca12773696070e01d2fe..87bda12a8864d1a21c8cc277d822862a03c026f2 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2081,16 +2081,15 @@ void Browser::OnExtensionLoaded(content::BrowserContext* browser_context,
command_controller_->ExtensionStateChanged();
}
-void Browser::OnExtensionUnloaded(
- content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) {
+void Browser::OnExtensionUnloaded(content::BrowserContext* browser_context,
+ const extensions::Extension* extension,
+ extensions::UnloadedExtensionReason reason) {
command_controller_->ExtensionStateChanged();
// Close any tabs from the unloaded extension, unless it's terminated,
// in which case let the sad tabs remain.
// Also, if tab is muted and the cause is the unloaded extension, unmute it.
- if (reason != extensions::UnloadedExtensionInfo::REASON_TERMINATE) {
+ if (reason != extensions::UnloadedExtensionReason::TERMINATE) {
// Iterate backwards as we may remove items while iterating.
for (int i = tab_strip_model_->count() - 1; i >= 0; --i) {
WebContents* web_contents = tab_strip_model_->GetWebContentsAt(i);
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698