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

Unified Diff: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.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 | « chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
diff --git a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
index d28a50f4049bededff39970bb4a733c54713e9ad..74f6c9d30bcf428fe50b875e0f7902cd5b099b49 100644
--- a/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
+++ b/extensions/browser/api/app_current_window_internal/app_current_window_internal_api.cc
@@ -122,6 +122,9 @@ BoundsType GetBoundsType(const std::string& type_as_string) {
bool AppCurrentWindowInternalExtensionFunction::PreRunValidation(
std::string* error) {
+ if (!UIThreadExtensionFunction::PreRunValidation(error))
+ return false;
+
AppWindowRegistry* registry = AppWindowRegistry::Get(browser_context());
DCHECK(registry);
content::WebContents* web_contents = GetSenderWebContents();
« no previous file with comments | « chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698