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

Unified Diff: chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc

Issue 2617023003: Fix PreRunValidation calls in two of UIThreadExtensionFunction's subclasses. (Closed)
Patch Set: Created 3 years, 11 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 | extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
diff --git a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
index 4e6dcba49b5e5e6476881f8580d055d6f0ddb91b..2996239f2dfba92bbf258dc56b4a35b55bd66d80 100644
--- a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
+++ b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
@@ -147,6 +147,9 @@ FileSystemProviderInternalFunction::FulfillRequest(
}
bool FileSystemProviderInternalFunction::PreRunValidation(std::string* error) {
+ if (!UIThreadExtensionFunction::PreRunValidation(error))
+ return false;
+
std::string file_system_id;
EXTENSION_FUNCTION_PRERUN_VALIDATE(args_->GetString(0, &file_system_id));
« no previous file with comments | « no previous file | extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698