diff options
| author | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 18:40:51 +0000 |
|---|---|---|
| committer | kuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 18:40:51 +0000 |
| commit | 230388a45910240cd770cd5a29a39bad4ca19ce4 (patch) | |
| tree | acf911adf01178edd97294e1ad0dfc75adec8018 /chrome/browser/views/uninstall_dialog.h | |
| parent | 11495b1be2bf51b887a9403cb164ff21e0640f1a (diff) | |
| download | chromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.zip chromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.tar.gz chromium_src-230388a45910240cd770cd5a29a39bad4ca19ce4.tar.bz2 | |
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
Diffstat (limited to 'chrome/browser/views/uninstall_dialog.h')
| -rw-r--r-- | chrome/browser/views/uninstall_dialog.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/browser/views/uninstall_dialog.h b/chrome/browser/views/uninstall_dialog.h new file mode 100644 index 0000000..6987cb2 --- /dev/null +++ b/chrome/browser/views/uninstall_dialog.h @@ -0,0 +1,39 @@ +// 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_DIALOG_H_ +#define CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_ + +#include "base/basictypes.h" +#include "views/window/dialog_delegate.h" + +class MessageBoxView; + +// UninstallDialog implements the dialog that confirms Chrome uninstallation +// and asks whether to delete Chrome profile. +class UninstallDialog : public views::DialogDelegate { + public: + static void ShowUninstallDialog(int& user_selection); + + protected: + // Overridden from views::DialogDelegate: + virtual bool Accept(); + virtual bool Cancel(); + virtual std::wstring GetWindowTitle() const; + + // Overridden from views::WindowDelegate: + virtual void DeleteDelegate(); + virtual views::View* GetContentsView(); + + private: + explicit UninstallDialog(int& user_selection); + virtual ~UninstallDialog(); + + MessageBoxView* message_box_view_; + int& user_selection_; + + DISALLOW_COPY_AND_ASSIGN(UninstallDialog); +}; + +#endif // CHROME_BROWSER_VIEWS_UNINSTALL_DIALOG_H_ |
