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

Side by Side Diff: chrome/app/breakpad_win.cc

Issue 8302016: Make GTK and Aura parts orthogonal to OS parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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 | « no previous file | chrome/browser/chrome_browser_main.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/app/breakpad_win.h" 5 #include "chrome/app/breakpad_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <tchar.h> 9 #include <tchar.h>
10 10
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 DWORD len = ::GetEnvironmentVariableW( 519 DWORD len = ::GetEnvironmentVariableW(
520 ASCIIToWide(env_vars::kRestartInfo).c_str(), NULL, 0); 520 ASCIIToWide(env_vars::kRestartInfo).c_str(), NULL, 0);
521 if (!len) 521 if (!len)
522 return true; 522 return true;
523 523
524 wchar_t* restart_data = new wchar_t[len + 1]; 524 wchar_t* restart_data = new wchar_t[len + 1];
525 ::GetEnvironmentVariableW(ASCIIToWide(env_vars::kRestartInfo).c_str(), 525 ::GetEnvironmentVariableW(ASCIIToWide(env_vars::kRestartInfo).c_str(),
526 restart_data, len); 526 restart_data, len);
527 restart_data[len] = 0; 527 restart_data[len] = 0;
528 // The CHROME_RESTART var contains the dialog strings separated by '|'. 528 // The CHROME_RESTART var contains the dialog strings separated by '|'.
529 // See PrepareRestartOnCrashEnviroment() function for details. 529 // See ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment()
530 // for details.
530 std::vector<std::wstring> dlg_strings; 531 std::vector<std::wstring> dlg_strings;
531 base::SplitString(restart_data, L'|', &dlg_strings); 532 base::SplitString(restart_data, L'|', &dlg_strings);
532 delete[] restart_data; 533 delete[] restart_data;
533 if (dlg_strings.size() < 3) 534 if (dlg_strings.size() < 3)
534 return true; 535 return true;
535 536
536 // If the UI layout is right-to-left, we need to pass the appropriate MB_XXX 537 // If the UI layout is right-to-left, we need to pass the appropriate MB_XXX
537 // flags so that an RTL message box is displayed. 538 // flags so that an RTL message box is displayed.
538 UINT flags = MB_OKCANCEL | MB_ICONWARNING; 539 UINT flags = MB_OKCANCEL | MB_ICONWARNING;
539 if (dlg_strings[2] == ASCIIToWide(env_vars::kRtlLocale)) 540 if (dlg_strings[2] == ASCIIToWide(env_vars::kRtlLocale))
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 if (QueueUserWorkItem( 734 if (QueueUserWorkItem(
734 &InitCrashReporterThread, 735 &InitCrashReporterThread,
735 info, 736 info,
736 WT_EXECUTELONGFUNCTION) == 0) { 737 WT_EXECUTELONGFUNCTION) == 0) {
737 // We failed to queue to the worker pool, initialize in this thread. 738 // We failed to queue to the worker pool, initialize in this thread.
738 InitCrashReporterThread(info); 739 InitCrashReporterThread(info);
739 } 740 }
740 } 741 }
741 } 742 }
742 } 743 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698