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

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

Issue 12662033: Show user data dialog earlier on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a browser test as suggested by Scott. Created 7 years, 9 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/user_data_dir_dialog.h
diff --git a/chrome/browser/ui/user_data_dir_dialog.h b/chrome/browser/ui/user_data_dir_dialog.h
index eb8418ed79247fdba7946267eafb5fed58fae357..21d251b2adcf3c143a6321de13068920488d555c 100644
--- a/chrome/browser/ui/user_data_dir_dialog.h
+++ b/chrome/browser/ui/user_data_dir_dialog.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_
#define CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_
+#include "base/callback.h"
+
namespace base {
class FilePath;
}
@@ -17,6 +19,11 @@ namespace chrome {
// use.
base::FilePath ShowUserDataDirDialog(const base::FilePath& user_data_dir);
+// Tests can call this to install a custom callback to be called instead of
+// actually showing the dialog when ShowUserDataDirDialog() is invoked.
+void InstallCustomShowUserDataDirDialogCallbackForTest(
+ const base::Closure& callback);
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_

Powered by Google App Engine
This is Rietveld 408576698