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

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

Issue 8174005: Get Chrome to build & link with USE_AURA on Windows again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/process_singleton.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void WarnAboutMinimumSystemRequirements() { 67 void WarnAboutMinimumSystemRequirements() {
68 if (base::win::GetVersion() < base::win::VERSION_XP) { 68 if (base::win::GetVersion() < base::win::VERSION_XP) {
69 // Display a warning message if the user is running chrome on Windows 2000. 69 // Display a warning message if the user is running chrome on Windows 2000.
70 const string16 text = 70 const string16 text =
71 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP); 71 l10n_util::GetStringUTF16(IDS_UNSUPPORTED_OS_PRE_WIN_XP);
72 const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); 72 const string16 caption = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME);
73 ui::MessageBox(NULL, text, caption, MB_OK | MB_ICONWARNING | MB_TOPMOST); 73 ui::MessageBox(NULL, text, caption, MB_OK | MB_ICONWARNING | MB_TOPMOST);
74 } 74 }
75 } 75 }
76 76
77 #if !defined(USE_AURA)
77 void ShowMissingLocaleMessageBox() { 78 void ShowMissingLocaleMessageBox() {
78 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage), 79 ui::MessageBox(NULL, ASCIIToUTF16(chrome_browser::kMissingLocaleDataMessage),
79 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle), 80 ASCIIToUTF16(chrome_browser::kMissingLocaleDataTitle),
80 MB_OK | MB_ICONERROR | MB_TOPMOST); 81 MB_OK | MB_ICONERROR | MB_TOPMOST);
81 } 82 }
83 #endif
82 84
83 void RecordBrowserStartupTime() { 85 void RecordBrowserStartupTime() {
84 // Calculate the time that has elapsed from our own process creation. 86 // Calculate the time that has elapsed from our own process creation.
85 FILETIME creation_time = {}; 87 FILETIME creation_time = {};
86 FILETIME ignore = {}; 88 FILETIME ignore = {};
87 ::GetProcessTimes(::GetCurrentProcess(), &creation_time, &ignore, &ignore, 89 ::GetProcessTimes(::GetCurrentProcess(), &creation_time, &ignore, &ignore,
88 &ignore); 90 &ignore);
89 91
90 RecordPreReadExperimentTime("Startup.BrowserMessageLoopStartTime", 92 RecordPreReadExperimentTime("Startup.BrowserMessageLoopStartTime",
91 base::Time::Now() - base::Time::FromFileTime(creation_time)); 93 base::Time::Now() - base::Time::FromFileTime(creation_time));
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 const MainFunctionParams& parameters) 277 const MainFunctionParams& parameters)
276 : ChromeBrowserMainParts(parameters) { 278 : ChromeBrowserMainParts(parameters) {
277 } 279 }
278 280
279 void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() { 281 void ChromeBrowserMainPartsWin::PreMainMessageLoopStart() {
280 if (!parameters().ui_task) { 282 if (!parameters().ui_task) {
281 // Make sure that we know how to handle exceptions from the message loop. 283 // Make sure that we know how to handle exceptions from the message loop.
282 InitializeWindowProcExceptions(); 284 InitializeWindowProcExceptions();
283 } 285 }
284 } 286 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/process_singleton.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698