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

Unified Diff: chrome/browser/chromeos/file_system_provider/service.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/chromeos/file_system_provider/service.cc
diff --git a/chrome/browser/chromeos/file_system_provider/service.cc b/chrome/browser/chromeos/file_system_provider/service.cc
index 0f5a5baa8490cbac7d27b7d50bb84b37a22854b1..fba1b8f12a78a415524f47758aed902090b3d020 100644
--- a/chrome/browser/chromeos/file_system_provider/service.cc
+++ b/chrome/browser/chromeos/file_system_provider/service.cc
@@ -356,10 +356,9 @@ bool Service::GetProvidingExtensionInfo(const std::string& extension_id,
return true;
}
-void Service::OnExtensionUnloaded(
- content::BrowserContext* browser_context,
- const extensions::Extension* extension,
- extensions::UnloadedExtensionInfo::Reason reason) {
+void Service::OnExtensionUnloaded(content::BrowserContext* browser_context,
+ const extensions::Extension* extension,
+ extensions::UnloadedExtensionReason reason) {
// Unmount all of the provided file systems associated with this extension.
auto it = file_system_map_.begin();
while (it != file_system_map_.end()) {
@@ -371,7 +370,7 @@ void Service::OnExtensionUnloaded(
if (file_system_info.extension_id() == extension->id()) {
const base::File::Error unmount_result = UnmountFileSystem(
file_system_info.extension_id(), file_system_info.file_system_id(),
- reason == extensions::UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN
+ reason == extensions::UnloadedExtensionReason::PROFILE_SHUTDOWN
? UNMOUNT_REASON_SHUTDOWN
: UNMOUNT_REASON_USER);
DCHECK_EQ(base::File::FILE_OK, unmount_result);

Powered by Google App Engine
This is Rietveld 408576698