diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 04:05:29 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-26 04:05:29 +0000 |
commit | 2381ed2ed0e7560a29fe484d6c79103ca8eafa12 (patch) | |
tree | 59870ca2e3de1b1bece166dae2981a983ae65b54 /chrome/browser/ui/gtk/first_run_dialog.h | |
parent | 31d71b0e8b1b04c12e6ec654d9deca49f6303a6e (diff) | |
download | chromium_src-2381ed2ed0e7560a29fe484d6c79103ca8eafa12.zip chromium_src-2381ed2ed0e7560a29fe484d6c79103ca8eafa12.tar.gz chromium_src-2381ed2ed0e7560a29fe484d6c79103ca8eafa12.tar.bz2 |
Remove the first-run search engine dialog/ballot.
No changes to the Gtk and Mac first-run (reporting & default browser) dialog.
Tested optionally with GYP_DEFINES="branding=Chrome" and "--first-run --organic".
Chromium (all platforms): Shows the browser window directly (no dialog).
Chrome (Windows): Shows the browser window directly (no dialog).
Chrome (Linux and Mac): Shows the first-run (reporting & default browser) dialog before the browser window.
TODO(msw): Close crbug.com/111062 for removed test.
TODO(msw): Remove search engine icon/image resources (TemplateURL::logo_id_).
BUG=107005
TEST=No more standalone search engine selection dialog/ballot, Gtk and Mac first-run dialog works as before.
Review URL: http://codereview.chromium.org/9285002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119189 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/first_run_dialog.h')
-rw-r--r-- | chrome/browser/ui/gtk/first_run_dialog.h | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/chrome/browser/ui/gtk/first_run_dialog.h b/chrome/browser/ui/gtk/first_run_dialog.h index 67b8e6d..684dd29 100644 --- a/chrome/browser/ui/gtk/first_run_dialog.h +++ b/chrome/browser/ui/gtk/first_run_dialog.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,32 +11,20 @@ typedef struct _GtkWidget GtkWidget; #include "base/compiler_specific.h" #include "chrome/browser/first_run/first_run.h" -#include "chrome/browser/search_engines/template_url_service_observer.h" #include "ui/base/gtk/gtk_signal.h" -class TemplateURL; -class TemplateURLService; - -class FirstRunDialog : public TemplateURLServiceObserver { +class FirstRunDialog { public: // Displays the first run UI for reporting opt-in, import data etc. - static bool Show(Profile* profile, bool randomize_search_engine_order); - - virtual void OnTemplateURLServiceChanged() OVERRIDE; + static bool Show(); private: - FirstRunDialog(Profile* profile, - bool show_reporting_dialog, - bool show_search_engines_dialog, - int* response); + FirstRunDialog(bool show_reporting_dialog, int* response); virtual ~FirstRunDialog(); CHROMEGTK_CALLBACK_1(FirstRunDialog, void, OnResponseDialog, int); - CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineButtonClicked); - CHROMEGTK_CALLBACK_0(FirstRunDialog, void, OnSearchEngineWindowDestroy); CHROMEG_CALLBACK_0(FirstRunDialog, void, OnLearnMoreLinkClicked, GtkButton*); - void ShowSearchEngineWindow(); void ShowReportingDialog(); // This method closes the first run window and quits the message loop so that @@ -44,32 +32,15 @@ class FirstRunDialog : public TemplateURLServiceObserver { // first run tasks are done. void FirstRunDone(); - // The search engine choice window. This is created and shown before - // |dialog_|. - GtkWidget* search_engine_window_; - // Dialog that holds the bug reporting and default browser checkboxes. GtkWidget* dialog_; - // Container for the search engine choices. - GtkWidget* search_engine_hbox_; - // Crash reporting checkbox GtkWidget* report_crashes_; // Make browser default checkbox GtkWidget* make_default_; - // Our current profile - Profile* profile_; - - // Owned by the profile_. - TemplateURLService* search_engines_model_; - - // The search engine the user chose, or NULL if the user has not chosen a - // search engine. - TemplateURL* chosen_search_engine_; - // Whether we should show the dialog asking the user whether to report // crashes and usage stats. bool show_reporting_dialog_; |