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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Enum class 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 5e5a6ab8b359187b1098a121df987057720b86cc..5b3a3165ad5fa10c765f9b88d7f58c83d32c003c 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2080,16 +2080,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::REASON_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);

Powered by Google App Engine
This is Rietveld 408576698