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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1023783005: Merge Crashpad to the 42.0.2311 branch (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2311
Patch Set: Created 5 years, 9 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
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/crash_upload_list.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 #include "ui/base/resource/resource_bundle.h" 135 #include "ui/base/resource/resource_bundle.h"
136 #include "ui/resources/grit/ui_resources.h" 136 #include "ui/resources/grit/ui_resources.h"
137 137
138 #if defined(OS_WIN) 138 #if defined(OS_WIN)
139 #include "base/win/windows_version.h" 139 #include "base/win/windows_version.h"
140 #include "chrome/browser/chrome_browser_main_win.h" 140 #include "chrome/browser/chrome_browser_main_win.h"
141 #include "sandbox/win/src/sandbox_policy.h" 141 #include "sandbox/win/src/sandbox_policy.h"
142 #elif defined(OS_MACOSX) 142 #elif defined(OS_MACOSX)
143 #include "chrome/browser/chrome_browser_main_mac.h" 143 #include "chrome/browser/chrome_browser_main_mac.h"
144 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h" 144 #include "chrome/browser/spellchecker/spellcheck_message_filter_mac.h"
145 #include "components/crash/app/breakpad_mac.h"
146 #elif defined(OS_CHROMEOS) 145 #elif defined(OS_CHROMEOS)
147 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h" 146 #include "chrome/browser/chromeos/chrome_browser_main_chromeos.h"
148 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h" 147 #include "chrome/browser/chromeos/drive/fileapi/file_system_backend_delegate.h"
149 #include "chrome/browser/chromeos/file_manager/app_id.h" 148 #include "chrome/browser/chromeos/file_manager/app_id.h"
150 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h" 149 #include "chrome/browser/chromeos/file_system_provider/fileapi/backend_delegate. h"
151 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 150 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
152 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h" 151 #include "chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h"
153 #include "chrome/browser/chromeos/login/startup_utils.h" 152 #include "chrome/browser/chromeos/login/startup_utils.h"
154 #include "chrome/browser/chromeos/system/input_device_settings.h" 153 #include "chrome/browser/chromeos/system/input_device_settings.h"
155 #include "chromeos/chromeos_switches.h" 154 #include "chromeos/chromeos_switches.h"
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 return false; 1281 return false;
1283 } 1282 }
1284 return true; 1283 return true;
1285 } 1284 }
1286 1285
1287 } // namespace 1286 } // namespace
1288 1287
1289 void ChromeContentBrowserClient::AppendExtraCommandLineSwitches( 1288 void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
1290 base::CommandLine* command_line, 1289 base::CommandLine* command_line,
1291 int child_process_id) { 1290 int child_process_id) {
1292 #if defined(OS_POSIX) 1291 #if defined(OS_MACOSX)
1292 scoped_ptr<metrics::ClientInfo> client_info =
1293 GoogleUpdateSettings::LoadMetricsClientInfo();
1294 if (client_info) {
1295 command_line->AppendSwitchASCII(switches::kMetricsClientID,
1296 client_info->client_id);
1297 }
1298 #elif defined(OS_POSIX)
1293 if (breakpad::IsCrashReporterEnabled()) { 1299 if (breakpad::IsCrashReporterEnabled()) {
1294 scoped_ptr<metrics::ClientInfo> client_info = 1300 scoped_ptr<metrics::ClientInfo> client_info =
1295 GoogleUpdateSettings::LoadMetricsClientInfo(); 1301 GoogleUpdateSettings::LoadMetricsClientInfo();
1296 command_line->AppendSwitchASCII(switches::kEnableCrashReporter, 1302 command_line->AppendSwitchASCII(switches::kEnableCrashReporter,
1297 client_info ? client_info->client_id 1303 client_info ? client_info->client_id
1298 : std::string()); 1304 : std::string());
1299 } 1305 }
1300 #endif // defined(OS_POSIX) 1306 #endif
1301 1307
1302 if (logging::DialogsAreSuppressed()) 1308 if (logging::DialogsAreSuppressed())
1303 command_line->AppendSwitch(switches::kNoErrorDialogs); 1309 command_line->AppendSwitch(switches::kNoErrorDialogs);
1304 1310
1305 std::string process_type = 1311 std::string process_type =
1306 command_line->GetSwitchValueASCII(switches::kProcessType); 1312 command_line->GetSwitchValueASCII(switches::kProcessType);
1307 const base::CommandLine& browser_command_line = 1313 const base::CommandLine& browser_command_line =
1308 *base::CommandLine::ForCurrentProcess(); 1314 *base::CommandLine::ForCurrentProcess();
1309 1315
1310 static const char* const kCommonSwitchNames[] = { 1316 static const char* const kCommonSwitchNames[] = {
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 switches::kDisableWebRtcEncryption, 2648 switches::kDisableWebRtcEncryption,
2643 }; 2649 };
2644 to_command_line->CopySwitchesFrom(from_command_line, 2650 to_command_line->CopySwitchesFrom(from_command_line,
2645 kWebRtcDevSwitchNames, 2651 kWebRtcDevSwitchNames,
2646 arraysize(kWebRtcDevSwitchNames)); 2652 arraysize(kWebRtcDevSwitchNames));
2647 } 2653 }
2648 } 2654 }
2649 #endif // defined(ENABLE_WEBRTC) 2655 #endif // defined(ENABLE_WEBRTC)
2650 2656
2651 } // namespace chrome 2657 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/crash_upload_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698