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

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

Issue 10382155: browser: Refactor the way to show the user data dir dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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/chrome_browser_main.cc ('k') | chrome/browser/ui/views/user_data_dir_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..24b633110daad9ff38cf45692d1e1bd92045b9c6
--- /dev/null
+++ b/chrome/browser/ui/user_data_dir_dialog.h
@@ -0,0 +1,21 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_
+#define CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_
+#pragma once
+
+class FilePath;
+
+namespace browser {
+
+// Shows a user data directory picker dialog. The method blocks while the dialog
+// is showing. If the user picks a directory, this method returns the chosen
+// directory. |user_data_dir| is the value of the directory we were not able to
+// use.
+FilePath ShowUserDataDirDialog(const FilePath& user_data_dir);
+
+} // namespace browser
+
+#endif // CHROME_BROWSER_UI_USER_DATA_DIR_DIALOG_H_
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/ui/views/user_data_dir_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698