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

Unified Diff: chrome/browser/ui/gtk/process_singleton_dialog.h

Issue 23506011: Improve the UI for handling profile lock contention. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve the localizability. Created 7 years, 3 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/gtk/process_singleton_dialog.h
diff --git a/chrome/browser/ui/gtk/process_singleton_dialog.h b/chrome/browser/ui/gtk/process_singleton_dialog.h
index e62ec6778710acdf7f9505c27c45a292326ac7d4..3bfb4b495934f9c42f239fad45b40cae5215d66a 100644
--- a/chrome/browser/ui/gtk/process_singleton_dialog.h
+++ b/chrome/browser/ui/gtk/process_singleton_dialog.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/files/file_path.h"
#include "ui/base/gtk/gtk_signal.h"
typedef struct _GtkWidget GtkWidget;
@@ -18,14 +19,19 @@ typedef struct _GtkWidget GtkWidget;
class ProcessSingletonDialog {
public:
// Shows the dialog, and returns once the dialog has been closed.
- static void ShowAndRun(const std::string& message);
+ static bool ShowAndRun(const std::string& message,
+ const std::string& relaunch_text);
+
+ int GetResponseId() const { return response_id_; }
private:
- explicit ProcessSingletonDialog(const std::string& message);
+ ProcessSingletonDialog(const std::string& message,
+ const std::string& relaunch_text);
CHROMEGTK_CALLBACK_1(ProcessSingletonDialog, void, OnResponse, int);
GtkWidget* dialog_;
+ int response_id_;
DISALLOW_COPY_AND_ASSIGN(ProcessSingletonDialog);
};

Powered by Google App Engine
This is Rietveld 408576698