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

Unified Diff: chrome/browser/ui/webui/set_as_default_browser_ui_win.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_win.h
diff --git a/chrome/browser/ui/webui/set_as_default_browser_ui.h b/chrome/browser/ui/webui/set_as_default_browser_ui_win.h
similarity index 65%
rename from chrome/browser/ui/webui/set_as_default_browser_ui.h
rename to chrome/browser/ui/webui/set_as_default_browser_ui_win.h
index 9b9009d38a2ba0781f2c2ca5b979adcbe58b8330..8c37f898f4e5734e0a7a8fc9b9c6e0c1f42f3719 100644
--- a/chrome/browser/ui/webui/set_as_default_browser_ui.h
+++ b/chrome/browser/ui/webui/set_as_default_browser_ui_win.h
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
-#define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
+#ifndef CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_
+#define CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_
#include "base/macros.h"
+#include "ui/views/widget/widget.h"
grt (UTC plus 2) 2016/07/19 08:13:01 replace this with a forward decl: namespace views
zmin 2016/07/20 16:35:45 Done.
#include "ui/web_dialogs/web_dialog_ui.h"
class Browser;
@@ -19,10 +20,13 @@ class SetAsDefaultBrowserUI : public ui::WebDialogUI {
explicit SetAsDefaultBrowserUI(content::WebUI* web_ui);
// Present metroizer UI either in a new singleton tab or in a dialog window.
- static void Show(Profile* profile, Browser* browser);
+ static void Show(Profile* profile);
+
+ // Returns the web dialog widget for testing.
+ static views::Widget* GetDialogWidgetForTesting();
private:
DISALLOW_COPY_AND_ASSIGN(SetAsDefaultBrowserUI);
};
-#endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_H_
+#endif // CHROME_BROWSER_UI_WEBUI_SET_AS_DEFAULT_BROWSER_UI_WIN_H_

Powered by Google App Engine
This is Rietveld 408576698