| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/views/update_recommended_message_box.h" | 5 #include "chrome/browser/views/update_recommended_message_box.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/message_box_flags.h" | 8 #include "app/message_box_flags.h" |
| 9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "grit/chromium_strings.h" | 13 #include "grit/chromium_strings.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 #include "views/controls/message_box_view.h" | 15 #include "views/controls/message_box_view.h" |
| 16 #include "views/window/window.h" | 16 #include "views/window/window.h" |
| 17 | 17 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
| 19 // UpdateRecommendedMessageBox, public: | 19 // UpdateRecommendedMessageBox, public: |
| 20 | 20 |
| 21 // static | 21 // static |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 MessageBoxFlags::kFlagHasMessage | MessageBoxFlags::kFlagHasOKButton, | 76 MessageBoxFlags::kFlagHasMessage | MessageBoxFlags::kFlagHasOKButton, |
| 77 l10n_util::GetStringF(IDS_UPDATE_RECOMMENDED, | 77 l10n_util::GetStringF(IDS_UPDATE_RECOMMENDED, |
| 78 l10n_util::GetString(IDS_PRODUCT_NAME)), | 78 l10n_util::GetString(IDS_PRODUCT_NAME)), |
| 79 std::wstring(), | 79 std::wstring(), |
| 80 kDialogWidth); | 80 kDialogWidth); |
| 81 views::Window::CreateChromeWindow(parent_window, gfx::Rect(), this)->Show(); | 81 views::Window::CreateChromeWindow(parent_window, gfx::Rect(), this)->Show(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 UpdateRecommendedMessageBox::~UpdateRecommendedMessageBox() { | 84 UpdateRecommendedMessageBox::~UpdateRecommendedMessageBox() { |
| 85 } | 85 } |
| OLD | NEW |