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

Side by Side Diff: components/breakpad/app/hard_error_handler_win.cc

Issue 107383002: Use base namespace for string16 in components and cloud_print. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/breakpad/app/hard_error_handler_win.h" 5 #include "components/breakpad/app/hard_error_handler_win.h"
6 6
7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700 7 #if defined(_WIN32_WINNT_WIN8) && _MSC_VER < 1700
8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in 8 // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h, and in
9 // delayimp.h previous to VS2012. 9 // delayimp.h previous to VS2012.
10 #undef FACILITY_VISUALCPP 10 #undef FACILITY_VISUALCPP
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ntdll, 50 ntdll,
51 nt_status, 51 nt_status,
52 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 52 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
53 reinterpret_cast<wchar_t*>(&msg_template), 53 reinterpret_cast<wchar_t*>(&msg_template),
54 0, 54 0,
55 NULL); 55 NULL);
56 56
57 if (!count) 57 if (!count)
58 return; 58 return;
59 count += p1.size() + p2.size() + 1; 59 count += p1.size() + p2.size() + 1;
60 string16 message; 60 base::string16 message;
61 ::wsprintf(WriteInto(&message, count), msg_template, p1.c_str(), p2.c_str()); 61 ::wsprintf(WriteInto(&message, count), msg_template, p1.c_str(), p2.c_str());
62 // The MB_SERVICE_NOTIFICATION causes this message to be displayed by 62 // The MB_SERVICE_NOTIFICATION causes this message to be displayed by
63 // csrss. This means that we are not creating windows or pumping WM messages 63 // csrss. This means that we are not creating windows or pumping WM messages
64 // in this process. 64 // in this process.
65 ::MessageBox(NULL, message.c_str(), 65 ::MessageBox(NULL, message.c_str(),
66 L"chrome.exe", 66 L"chrome.exe",
67 MB_OK | MB_SERVICE_NOTIFICATION); 67 MB_OK | MB_SERVICE_NOTIFICATION);
68 ::LocalFree(msg_template); 68 ::LocalFree(msg_template);
69 } 69 }
70 70
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 RaiseHardErrorMsg(exception, std::string(), std::string()); 109 RaiseHardErrorMsg(exception, std::string(), std::string());
110 return true; 110 return true;
111 #else 111 #else
112 return false; 112 return false;
113 #endif 113 #endif
114 } 114 }
115 return false; 115 return false;
116 } 116 }
117 117
118 } // namespace breakpad 118 } // namespace breakpad
OLDNEW
« no previous file with comments | « components/autofill/core/common/password_form.h ('k') | components/dom_distiller/content/distiller_page_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698