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

Unified Diff: apps/saved_files_service.cc

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests Created 5 years 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: apps/saved_files_service.cc
diff --git a/apps/saved_files_service.cc b/apps/saved_files_service.cc
index e4a4fd9b70f4816b9f68fdfb0627ed951d66efdc..223f56b3e845a0cdaae85cda147f3424bd0cbe9b 100644
--- a/apps/saved_files_service.cc
+++ b/apps/saved_files_service.cc
@@ -261,8 +261,7 @@ const SavedFileEntry* SavedFilesService::GetFileEntry(
void SavedFilesService::ClearQueueIfNoRetainPermission(
const Extension* extension) {
- if (extensions::util::IsEphemeralApp(extension->id(), profile_) ||
- !extension->permissions_data()->active_permissions().HasAPIPermission(
+ if (!extension->permissions_data()->active_permissions().HasAPIPermission(
APIPermission::kFileSystemRetainEntries)) {
ClearQueue(extension);
}
« no previous file with comments | « no previous file | chrome/browser/apps/app_browsertest.cc » ('j') | chrome/browser/extensions/extension_install_prompt.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698