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

Unified Diff: apps/saved_files_service.cc

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 years, 7 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 | « no previous file | chrome/browser/apps/ephemeral_app_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/saved_files_service.cc
diff --git a/apps/saved_files_service.cc b/apps/saved_files_service.cc
index 9f9c2b53c237641e6738d29eabcb01e1dcb93a7e..f1e12c7f0b837c1cf738445af24b11578033575d 100644
--- a/apps/saved_files_service.cc
+++ b/apps/saved_files_service.cc
@@ -16,6 +16,7 @@
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/browser/extension_util.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/permission_set.h"
@@ -260,7 +261,7 @@ const SavedFileEntry* SavedFilesService::GetFileEntry(
void SavedFilesService::ClearQueueIfNoRetainPermission(
const Extension* extension) {
- if (extension->is_ephemeral() ||
+ if (extensions::util::IsEphemeralApp(extension->id(), profile_) ||
!extension->GetActivePermissions()->HasAPIPermission(
APIPermission::kFileSystemRetainEntries)) {
ClearQueue(extension);
« no previous file with comments | « no previous file | chrome/browser/apps/ephemeral_app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698