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

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

Issue 22288003: App: Get the proper message to restart the browser after a crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698