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

Unified Diff: chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h

Issue 5519016: Add a new GetInstance() method for singleton classes used in chrome/browser files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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/app_modal_dialogs/app_modal_dialog_queue.h
diff --git a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h b/chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h
index b1b221bb428dc902253d268b69622582dafdce19..be24a744112cdcbc7f56c038891ed7eb5a9f6dfd 100644
--- a/chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h
+++ b/chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h
@@ -8,14 +8,18 @@
#include <queue>
-#include "base/singleton.h"
#include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h"
+template <typename T> struct DefaultSingletonTraits;
+
// Keeps a queue of AppModalDialogs, making sure only one app modal
// dialog is shown at a time.
// This class is a singleton.
class AppModalDialogQueue {
public:
+ // Returns the singleton instance.
+ static AppModalDialogQueue* GetInstance();
+
// Adds a modal dialog to the queue, if there are no other dialogs in the
// queue, the dialog will be shown immediately. Once it is shown, the
// most recently active browser window (or whichever is currently active)
« no previous file with comments | « chrome/browser/ui/app_modal_dialogs/app_modal_dialog.cc ('k') | chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698