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

Unified Diff: chrome/browser/views/uninstall_dialog.cc

Issue 174194: Re-apply r23841 "During uninstall if Chrome is set as default" (Closed)
Patch Set: update for combobox model changes Created 11 years, 4 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/uninstall_dialog.h ('k') | chrome/browser/views/uninstall_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/uninstall_dialog.cc
diff --git a/chrome/browser/views/uninstall_dialog.cc b/chrome/browser/views/uninstall_dialog.cc
deleted file mode 100644
index f54fbc8bf582fe12e1fee6facaef79913562115f..0000000000000000000000000000000000000000
--- a/chrome/browser/views/uninstall_dialog.cc
+++ /dev/null
@@ -1,61 +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.
-
-#include "chrome/browser/views/uninstall_dialog.h"
-
-#include "app/l10n_util.h"
-#include "app/message_box_flags.h"
-#include "base/message_loop.h"
-#include "chrome/common/result_codes.h"
-#include "grit/chromium_strings.h"
-#include "views/controls/message_box_view.h"
-#include "views/window/window.h"
-
-// static
-void UninstallDialog::ShowUninstallDialog(int& user_selection) {
- // When the window closes, it will delete itself.
- new UninstallDialog(user_selection);
-}
-
-bool UninstallDialog::Accept() {
- user_selection_ = ResultCodes::NORMAL_EXIT;
- if (message_box_view_->IsCheckBoxSelected())
- user_selection_ = ResultCodes::UNINSTALL_DELETE_PROFILE;
- return true;
-}
-
-bool UninstallDialog::Cancel() {
- user_selection_ = ResultCodes::UNINSTALL_USER_CANCEL;
- return true;
-}
-
-std::wstring UninstallDialog::GetWindowTitle() const {
- return l10n_util::GetString(IDS_UNINSTALL_CHROME);
-}
-
-void UninstallDialog::DeleteDelegate() {
- delete this;
-}
-
-views::View* UninstallDialog::GetContentsView() {
- return message_box_view_;
-}
-
-UninstallDialog::UninstallDialog(int& user_selection)
- : user_selection_(user_selection) {
- // Also deleted when the window closes.
- message_box_view_ = new MessageBoxView(
- MessageBoxFlags::kIsConfirmMessageBox |
- MessageBoxFlags::kAutoDetectAlignment,
- l10n_util::GetString(IDS_UNINSTALL_VERIFY).c_str(),
- std::wstring());
- message_box_view_->SetCheckBoxLabel(
- l10n_util::GetString(IDS_UNINSTALL_DELETE_PROFILE));
- message_box_view_->SetCheckBoxSelected(false);
- views::Window::CreateChromeWindow(NULL, gfx::Rect(), this)->Show();
-}
-
-UninstallDialog::~UninstallDialog() {
- MessageLoop::current()->Quit();
-}
« no previous file with comments | « chrome/browser/views/uninstall_dialog.h ('k') | chrome/browser/views/uninstall_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698