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

Unified Diff: chrome/browser/extensions/extension_browsertest.cc

Issue 7595005: Revert 95815 - Make extension file URL access opt-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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/extensions/extension_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_browsertest.cc
===================================================================
--- chrome/browser/extensions/extension_browsertest.cc (revision 95819)
+++ chrome/browser/extensions/extension_browsertest.cc (working copy)
@@ -114,9 +114,9 @@
ui_test_utils::WindowedNotificationObserver load_signal(
chrome::NOTIFICATION_EXTENSION_LOADED,
Source<Profile>(browser()->profile()));
- CHECK(!service->AllowFileAccess(extension));
+ CHECK(service->AllowFileAccess(extension));
- if (fileaccess_enabled) {
+ if (!fileaccess_enabled) {
service->SetAllowFileAccess(extension, fileaccess_enabled);
load_signal.Wait();
extension = service->GetExtensionById(extension_id, false);
@@ -131,7 +131,7 @@
}
const Extension* ExtensionBrowserTest::LoadExtension(const FilePath& path) {
- return LoadExtensionWithOptions(path, false, false);
+ return LoadExtensionWithOptions(path, false, true);
}
const Extension* ExtensionBrowserTest::LoadExtensionIncognito(
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698