From 230388a45910240cd770cd5a29a39bad4ca19ce4 Mon Sep 17 00:00:00 2001 From: "kuchhal@chromium.org" Date: Thu, 20 Aug 2009 18:40:51 +0000 Subject: Revert "During uninstall if Chrome is set as default," allow user to choose another browser as default." reverting r23841 Review URL: http://codereview.chromium.org/173131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23845 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/uninstall_view.h | 59 ----------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 chrome/browser/views/uninstall_view.h (limited to 'chrome/browser/views/uninstall_view.h') diff --git a/chrome/browser/views/uninstall_view.h b/chrome/browser/views/uninstall_view.h deleted file mode 100644 index 6b5933c..0000000 --- a/chrome/browser/views/uninstall_view.h +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2009 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. - -#ifndef CHROME_BROWSER_VIEWS_UNINSTALL_VIEW_H_ -#define CHROME_BROWSER_VIEWS_UNINSTALL_VIEW_H_ - -#include "views/controls/combobox/combobox.h" -#include "views/window/dialog_delegate.h" - -namespace views { -class Checkbox; -class Label; -} - -// UninstallView implements the dialog that confirms Chrome uninstallation -// and asks whether to delete Chrome profile. Also if currently Chrome is set -// as default browser, it asks users whether to set another browser as default. -class UninstallView : public views::View, - public views::ButtonListener, - public views::DialogDelegate, - public views::Combobox::Model { - public: - explicit UninstallView(int& user_selection); - virtual ~UninstallView(); - - // Overridden from views::DialogDelegate: - virtual bool Accept(); - virtual bool Cancel(); - virtual std::wstring GetDialogButtonLabel( - MessageBoxFlags::DialogButton button) const; - - // Overridden form views::ButtonListener. - virtual void ButtonPressed(views::Button* sender); - - // Overridden from views::WindowDelegate: - virtual std::wstring GetWindowTitle() const; - virtual views::View* GetContentsView(); - - // Overridden from views::Combobox::Model. - virtual int GetItemCount(views::Combobox* source); - virtual std::wstring GetItemAt(views::Combobox* source, int index); - - private: - // Initializes the controls on the dialog. - void SetupControls(); - - views::Label* confirm_label_; - views::Checkbox* delete_profile_; - views::Checkbox* change_default_browser_; - views::Combobox* browsers_combo_; - typedef std::map BrowsersMap; - scoped_ptr browsers_; - int& user_selection_; - - DISALLOW_COPY_AND_ASSIGN(UninstallView); -}; - -#endif // CHROME_BROWSER_VIEWS_UNINSTALL_VIEW_H_ \ No newline at end of file -- cgit v1.1