| Index: chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc
|
| diff --git a/chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc b/chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc
|
| index 620e32c45d579fadb07466c474880e02a54beb74..882adb9cc9f8fbdc922d0b504b36f2b0ebded05b 100644
|
| --- a/chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc
|
| +++ b/chrome/browser/extensions/api/developer_private/show_permissions_dialog_helper.cc
|
| @@ -6,13 +6,14 @@
|
|
|
| #include <utility>
|
|
|
| -#include "apps/saved_files_service.h"
|
| +#include "apps/saved_files_service_impl.h"
|
| #include "base/metrics/histogram_macros.h"
|
| #include "chrome/browser/apps/app_load_service.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/apps/app_info_dialog.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "extensions/browser/api/device_permissions_manager.h"
|
| +#include "extensions/browser/api/file_system/saved_files_service.h"
|
| #include "extensions/browser/extension_registry.h"
|
| #include "extensions/common/extension.h"
|
| #include "extensions/common/permissions/permissions_data.h"
|
| @@ -66,10 +67,10 @@ void ShowPermissionsDialogHelper::ShowPermissionsDialog(
|
| std::vector<base::FilePath> retained_file_paths;
|
| if (extension->permissions_data()->HasAPIPermission(
|
| APIPermission::kFileSystem)) {
|
| - std::vector<apps::SavedFileEntry> retained_file_entries =
|
| - apps::SavedFilesService::Get(profile_)
|
| - ->GetAllFileEntries(extension_id_);
|
| - for (const apps::SavedFileEntry& entry : retained_file_entries)
|
| + std::vector<SavedFilesService::Entry> retained_file_entries =
|
| + apps::SavedFilesServiceImpl::Get(profile_)->GetAllFileEntries(
|
| + extension_id_);
|
| + for (const SavedFilesService::Entry& entry : retained_file_entries)
|
| retained_file_paths.push_back(entry.path);
|
| }
|
| std::vector<base::string16> retained_device_messages;
|
| @@ -101,7 +102,7 @@ void ShowPermissionsDialogHelper::OnInstallPromptDone(
|
| ->GetExtensionById(extension_id_, ExtensionRegistry::EVERYTHING);
|
|
|
| if (extension)
|
| - apps::SavedFilesService::Get(profile_)->ClearQueue(extension);
|
| + apps::SavedFilesServiceImpl::Get(profile_)->ClearQueue(extension);
|
| apps::AppLoadService::Get(profile_)
|
| ->RestartApplicationIfRunning(extension_id_);
|
| }
|
|
|