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

Unified Diff: chrome/browser/ui/chrome_select_file_policy.h

Issue 10832330: disable [add folder] button for media galleries dialog if (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 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
Index: chrome/browser/ui/chrome_select_file_policy.h
diff --git a/chrome/browser/ui/chrome_select_file_policy.h b/chrome/browser/ui/chrome_select_file_policy.h
index 51eb688e5584a0ce499c0a99ded2d789cf0370a6..d7294b92f9809ae0adafb0295bb238990cd7304e 100644
--- a/chrome/browser/ui/chrome_select_file_policy.h
+++ b/chrome/browser/ui/chrome_select_file_policy.h
@@ -25,6 +25,9 @@ class ChromeSelectFilePolicy : public ui::SelectFilePolicy {
virtual bool CanOpenSelectFileDialog() OVERRIDE;
virtual void SelectFileDenied() OVERRIDE;
+ // Returns true if local state allows showing file pickers.
+ static bool FileSelectDialogsAllowed();
+
private:
content::WebContents* source_contents_;
« no previous file with comments | « chrome/browser/media_gallery/media_galleries_dialog_controller.cc ('k') | chrome/browser/ui/chrome_select_file_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698