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

Unified Diff: content/test/content_browser_test_utils_internal.h

Issue 2446743002: Remove WebFileChooserParams::initialValue (Closed)
Patch Set: Remove defaultName from blink API Created 4 years, 2 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: content/test/content_browser_test_utils_internal.h
diff --git a/content/test/content_browser_test_utils_internal.h b/content/test/content_browser_test_utils_internal.h
index d9f756dfe66289524b21679dc0b594485e0f02a1..488771b867bf552e45a57a7e40fbba69c941fefe 100644
--- a/content/test/content_browser_test_utils_internal.h
+++ b/content/test/content_browser_test_utils_internal.h
@@ -19,6 +19,7 @@
#include "cc/surfaces/surface_id.h"
#include "content/public/browser/resource_dispatcher_host_delegate.h"
#include "content/public/browser/web_contents_delegate.h"
+#include "content/public/common/file_chooser_params.h"
#include "content/public/test/browser_test_utils.h"
#include "url/gurl.h"
@@ -151,9 +152,13 @@ class FileChooserDelegate : public WebContentsDelegate {
// Whether the file dialog was shown.
bool file_chosen() { return file_chosen_; }
+ // Copy of the params passed to RunFileChooser.
+ FileChooserParams params() { return params_; }
kinuko 2016/10/26 02:35:01 nit: make it a const method?
jsbell 2016/10/26 17:21:43 Done.
+
private:
base::FilePath file_;
bool file_chosen_;
+ FileChooserParams params_;
};
// This class is a TestNavigationManager that only monitors notifications within

Powered by Google App Engine
This is Rietveld 408576698