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

Unified Diff: chrome/browser/ui/webui/set_as_default_browser_ui.h

Issue 2090773002: Improves first run dialog performance on Win8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/webui/set_as_default_browser_ui.h
diff --git a/chrome/browser/ui/webui/set_as_default_browser_ui.h b/chrome/browser/ui/webui/set_as_default_browser_ui.h
index 9b9009d38a2ba0781f2c2ca5b979adcbe58b8330..cff1f31cb1c977cd8c5371e3009d52227f8d93bb 100644
--- a/chrome/browser/ui/webui/set_as_default_browser_ui.h
+++ b/chrome/browser/ui/webui/set_as_default_browser_ui.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
#include "base/macros.h"
+#include "ui/views/widget/widget.h"
#include "ui/web_dialogs/web_dialog_ui.h"
class Browser;
@@ -21,6 +22,9 @@ class SetAsDefaultBrowserUI : public ui::WebDialogUI {
// Present metroizer UI either in a new singleton tab or in a dialog window.
static void Show(Profile* profile, Browser* browser);
+ // Returns the web dialog widget for testing.
+ static views::Widget* GetDialogWidgetForTesting();
sky 2016/07/06 19:21:19 Instead of exposing this can you make Show() retur
zmin 2016/07/06 20:04:31 Yes, I can. However, the challenge is the browser
sky 2016/07/06 23:53:16 Would an IsVisible() function work on this class?
zmin 2016/07/18 21:12:14 There is no instance of SetAsDefaultBrowserUI crea
+
private:
DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI);
};

Powered by Google App Engine
This is Rietveld 408576698