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

Unified Diff: chrome/browser/views/first_run_view_base.h

Issue 4244: Make Chrome default browser an opt-out instead of an opt-in on first run. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/browser/views/first_run_view.cc ('k') | chrome/browser/views/first_run_view_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/first_run_view_base.h
===================================================================
--- chrome/browser/views/first_run_view_base.h (revision 2542)
+++ chrome/browser/views/first_run_view_base.h (working copy)
@@ -2,20 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H__
-#define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H__
+#ifndef CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
+#define CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
#include "chrome/browser/importer/importer.h"
#include "chrome/views/dialog_delegate.h"
#include "chrome/views/view.h"
namespace ChromeViews {
-
+class CheckBox;
class Window;
class ImageView;
class Separator;
class Throbber;
-
}
class Profile;
@@ -39,6 +38,9 @@
virtual bool IsAlwaysOnTop() const;
virtual bool HasAlwaysOnTopMenu() const;
+ // Overridden from ChromeViews::DialogDelegate.
+ std::wstring GetDialogButtonLabel(DialogButton button) const;
+
protected:
// Returns the items that the first run process is required to import
// from other browsers.
@@ -48,10 +50,13 @@
bool CreateDesktopShortcut();
bool CreateQuickLaunchShortcut();
+ // Set us as default browser if the user checked the box.
+ bool SetDefaultBrowser();
+
// Modifies the chrome configuration so that the first-run dialogs are not
// shown again.
bool FirstRunComplete();
-
+
// Disables the standard buttons of the dialog. Useful when importing.
void DisableButtons();
// Computes a tight dialog width given a contained UI element.
@@ -72,6 +77,7 @@
scoped_refptr<ImporterHost> importer_host_;
Profile* profile_;
+ ChromeViews::CheckBox* default_browser_;
private:
// Initializes the controls on the dialog.
@@ -81,8 +87,8 @@
ChromeViews::Separator* separator_2_;
int preferred_width_;
- DISALLOW_EVIL_CONSTRUCTORS(FirstRunViewBase);
+ DISALLOW_COPY_AND_ASSIGN(FirstRunViewBase);
};
-#endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H__
+#endif // CHROME_BROWSER_VIEWS_FIRST_RUN_VIEW_BASE_H_
« no previous file with comments | « chrome/browser/views/first_run_view.cc ('k') | chrome/browser/views/first_run_view_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698