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

Side by Side Diff: chrome/browser/chrome_browser_main_win.cc

Issue 10689095: browser: Put simple_message_box.h and chrome_web_contents_view_delegate.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chrome_browser_main_win.h" 5 #include "chrome/browser/chrome_browser_main_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 }; 84 };
85 85
86 } // namespace 86 } // namespace
87 87
88 void RecordBreakpadStatusUMA(MetricsService* metrics) { 88 void RecordBreakpadStatusUMA(MetricsService* metrics) {
89 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent()); 89 metrics->RecordBreakpadHasDebugger(TRUE == ::IsDebuggerPresent());
90 } 90 }
91 91
92 void WarnAboutMinimumSystemRequirements() { 92 void WarnAboutMinimumSystemRequirements() {
93 if (base::win::GetVersion() < base::win::VERSION_XP) { 93 if (base::win::GetVersion() < base::win::VERSION_XP) {
94 const string16 title = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); 94 chrome::ShowMessageBox(NULL,
95 const string16 message = 95 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
96 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP); 96 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP),
97 browser::ShowMessageBox(NULL, title, message, 97 chrome::MESSAGE_BOX_TYPE_WARNING);
98 browser::MESSAGE_BOX_TYPE_WARNING);
99 } 98 }
100 } 99 }
101 100
102 void ShowCloseBrowserFirstMessageBox() { 101 void ShowCloseBrowserFirstMessageBox() {
103 const string16 title = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); 102 chrome::ShowMessageBox(NULL,
104 const string16 message = l10n_util::GetStringUTF16(IDS_UNINSTALL_CLOSE_APP); 103 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME),
105 browser::ShowMessageBox(NULL, title, message, 104 l10n_util::GetStringUTF16(IDS_UNINSTALL_CLOSE_APP),
106 browser::MESSAGE_BOX_TYPE_WARNING); 105 chrome::MESSAGE_BOX_TYPE_WARNING);
107 } 106 }
108 107
109 int DoUninstallTasks(bool chrome_still_running) { 108 int DoUninstallTasks(bool chrome_still_running) {
110 // We want to show a warning to user (and exit) if Chrome is already running 109 // We want to show a warning to user (and exit) if Chrome is already running
111 // *before* we show the uninstall confirmation dialog box. But while the 110 // *before* we show the uninstall confirmation dialog box. But while the
112 // uninstall confirmation dialog is up, user might start Chrome, so we 111 // uninstall confirmation dialog is up, user might start Chrome, so we
113 // check once again after user acknowledges Uninstall dialog. 112 // check once again after user acknowledges Uninstall dialog.
114 if (chrome_still_running) { 113 if (chrome_still_running) {
115 ShowCloseBrowserFirstMessageBox(); 114 ShowCloseBrowserFirstMessageBox();
116 return chrome::RESULT_CODE_UNINSTALL_CHROME_ALIVE; 115 return chrome::RESULT_CODE_UNINSTALL_CHROME_ALIVE;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 if (resource_id) 338 if (resource_id)
340 return l10n_util::GetStringUTF16(resource_id); 339 return l10n_util::GetStringUTF16(resource_id);
341 return string16(); 340 return string16();
342 } 341 }
343 342
344 // static 343 // static
345 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() { 344 void ChromeBrowserMainPartsWin::SetupInstallerUtilStrings() {
346 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ()); 345 CR_DEFINE_STATIC_LOCAL(TranslationDelegate, delegate, ());
347 installer::SetTranslationDelegate(&delegate); 346 installer::SetTranslationDelegate(&delegate);
348 } 347 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698