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

Unified Diff: chrome/browser/platform_util_unittest.cc

Issue 1030133002: Move the check for fileBrowserHandler permission to FileBrowserHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed test for OS != OS_CHROMEOS. Created 5 years, 9 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/platform_util_unittest.cc
diff --git a/chrome/browser/platform_util_unittest.cc b/chrome/browser/platform_util_unittest.cc
index 16a5edcacc70b061e706f0eeb0980bd1e704af3c..97c5b32471d602edd94ca49064cfb64985e67773 100644
--- a/chrome/browser/platform_util_unittest.cc
+++ b/chrome/browser/platform_util_unittest.cc
@@ -50,19 +50,12 @@ class PlatformUtilTestContentBrowserClient
ScopedVector<storage::FileSystemBackend>* additional_backends) override {
storage::ExternalMountPoints* external_mount_points =
content::BrowserContext::GetMountPoints(browser_context);
- scoped_refptr<content::MockSpecialStoragePolicy> special_storage_policy =
- new content::MockSpecialStoragePolicy();
// New FileSystemBackend that uses our MockSpecialStoragePolicy.
chromeos::FileSystemBackend* backend = new chromeos::FileSystemBackend(
- nullptr, nullptr, nullptr, special_storage_policy,
- external_mount_points,
+ nullptr, nullptr, nullptr, external_mount_points,
storage::ExternalMountPoints::GetSystemInstance());
additional_backends->push_back(backend);
-
- // The only change we need to make is to add kFileManagerAppId as a file
- // handler.
- special_storage_policy->AddFileHandler(file_manager::kFileManagerAppId);
}
};

Powered by Google App Engine
This is Rietveld 408576698