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_crash_reporter_client.h" | 5 #include "chrome/app/chrome_crash_reporter_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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 scoped_ptr<base::Environment> env(base::Environment::Create()); | 152 scoped_ptr<base::Environment> env(base::Environment::Create()); |
153 if (!env->HasVar(env_vars::kRestartInfo)) | 153 if (!env->HasVar(env_vars::kRestartInfo)) |
154 return false; | 154 return false; |
155 | 155 |
156 env->SetVar(env_vars::kShowRestart, "1"); | 156 env->SetVar(env_vars::kShowRestart, "1"); |
157 return true; | 157 return true; |
158 } | 158 } |
159 | 159 |
160 bool ChromeCrashReporterClient::GetDeferredUploadsSupported( | 160 bool ChromeCrashReporterClient::GetDeferredUploadsSupported( |
161 bool is_per_user_install) { | 161 bool is_per_user_install) { |
162 Version update_version = GoogleUpdateSettings::GetGoogleUpdateVersion( | 162 base::Version update_version = GoogleUpdateSettings::GetGoogleUpdateVersion( |
163 !is_per_user_install); | 163 !is_per_user_install); |
164 if (!update_version.IsValid() || | 164 if (!update_version.IsValid() || |
165 update_version.IsOlderThan(std::string(kMinUpdateVersion))) | 165 update_version.IsOlderThan(std::string(kMinUpdateVersion))) |
166 return false; | 166 return false; |
167 | 167 |
168 return true; | 168 return true; |
169 } | 169 } |
170 | 170 |
171 bool ChromeCrashReporterClient::GetIsPerUserInstall( | 171 bool ChromeCrashReporterClient::GetIsPerUserInstall( |
172 const base::FilePath& exe_path) { | 172 const base::FilePath& exe_path) { |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 bool ChromeCrashReporterClient::EnableBreakpadForProcess( | 349 bool ChromeCrashReporterClient::EnableBreakpadForProcess( |
350 const std::string& process_type) { | 350 const std::string& process_type) { |
351 return process_type == switches::kRendererProcess || | 351 return process_type == switches::kRendererProcess || |
352 process_type == switches::kPluginProcess || | 352 process_type == switches::kPluginProcess || |
353 process_type == switches::kPpapiPluginProcess || | 353 process_type == switches::kPpapiPluginProcess || |
354 process_type == switches::kZygoteProcess || | 354 process_type == switches::kZygoteProcess || |
355 process_type == switches::kGpuProcess; | 355 process_type == switches::kGpuProcess; |
356 } | 356 } |
357 | 357 |
358 } // namespace chrome | 358 } // namespace chrome |
OLD | NEW |