OLD | NEW |
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 "chrome/app/chrome_breakpad_client.h" | 5 #include "chrome/app/chrome_breakpad_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // The CHROME_RESTART var contains the dialog strings separated by '|'. | 129 // The CHROME_RESTART var contains the dialog strings separated by '|'. |
130 // See ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment() | 130 // See ChromeBrowserMainPartsWin::PrepareRestartOnCrashEnviroment() |
131 // for details. | 131 // for details. |
132 std::vector<std::string> dlg_strings; | 132 std::vector<std::string> dlg_strings; |
133 base::SplitString(restart_info, '|', &dlg_strings); | 133 base::SplitString(restart_info, '|', &dlg_strings); |
134 | 134 |
135 if (dlg_strings.size() < 3) | 135 if (dlg_strings.size() < 3) |
136 return false; | 136 return false; |
137 | 137 |
138 *title = base::ASCIIToUTF16(dlg_strings[0]); | 138 *title = base::ASCIIToUTF16(dlg_strings[0]); |
139 *message = base::ASCIIToUTF16(dlg_strings[0]); | 139 *message = base::ASCIIToUTF16(dlg_strings[1]); |
140 *is_rtl_locale = dlg_strings[2] == env_vars::kRtlLocale; | 140 *is_rtl_locale = dlg_strings[2] == env_vars::kRtlLocale; |
141 return true; | 141 return true; |
142 } | 142 } |
143 | 143 |
144 bool ChromeBreakpadClient::AboutToRestart() { | 144 bool ChromeBreakpadClient::AboutToRestart() { |
145 scoped_ptr<base::Environment> env(base::Environment::Create()); | 145 scoped_ptr<base::Environment> env(base::Environment::Create()); |
146 if (!env->HasVar(env_vars::kRestartInfo)) | 146 if (!env->HasVar(env_vars::kRestartInfo)) |
147 return false; | 147 return false; |
148 | 148 |
149 env->SetVar(env_vars::kShowRestart, "1"); | 149 env->SetVar(env_vars::kShowRestart, "1"); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 } | 248 } |
249 #endif | 249 #endif |
250 | 250 |
251 #if defined(OS_ANDROID) | 251 #if defined(OS_ANDROID) |
252 int ChromeBreakpadClient::GetAndroidMinidumpDescriptor() { | 252 int ChromeBreakpadClient::GetAndroidMinidumpDescriptor() { |
253 return kAndroidMinidumpDescriptor; | 253 return kAndroidMinidumpDescriptor; |
254 } | 254 } |
255 #endif | 255 #endif |
256 | 256 |
257 } // namespace chrome | 257 } // namespace chrome |
OLD | NEW |