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

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

Issue 1416133003: Crashpad Windows: Use the Crashpad client instead of Breakpad on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some stub gn files Created 5 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
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/crash_upload_list_crashpad.h » ('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/crash_upload_list.h" 5 #include "chrome/browser/crash_upload_list.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/common/chrome_paths.h" 11 #include "chrome/common/chrome_paths.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 13
14 #if defined(OS_WIN) 14 #if defined(OS_MACOSX) || defined(OS_WIN)
15 #include "chrome/browser/crash_upload_list_win.h" 15 #include "chrome/browser/crash_upload_list_crashpad.h"
16 #elif defined(OS_MACOSX)
17 #include "chrome/browser/crash_upload_list_mac.h"
18 #endif 16 #endif
19 17
20 scoped_refptr<CrashUploadList> CreateCrashUploadList( 18 scoped_refptr<CrashUploadList> CreateCrashUploadList(
21 UploadList::Delegate* delegate) { 19 UploadList::Delegate* delegate) {
22 base::FilePath crash_dir_path; 20 base::FilePath crash_dir_path;
23 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path); 21 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path);
24 base::FilePath upload_log_path = 22 base::FilePath upload_log_path =
25 crash_dir_path.AppendASCII(CrashUploadList::kReporterLogFilename); 23 crash_dir_path.AppendASCII(CrashUploadList::kReporterLogFilename);
26 #if defined(OS_WIN) 24 #if defined(OS_MACOSX) || defined(OS_WIN)
27 return new CrashUploadListWin(delegate, upload_log_path, 25 return new CrashUploadListCrashpad(delegate, upload_log_path,
28 content::BrowserThread::GetBlockingPool()); 26 content::BrowserThread::GetBlockingPool());
29 #elif defined(OS_MACOSX)
30 return new CrashUploadListMac(delegate, upload_log_path,
31 content::BrowserThread::GetBlockingPool());
32 #else 27 #else
33 return new CrashUploadList(delegate, upload_log_path, 28 return new CrashUploadList(delegate, upload_log_path,
34 content::BrowserThread::GetBlockingPool()); 29 content::BrowserThread::GetBlockingPool());
35 #endif 30 #endif
36 } 31 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.mm ('k') | chrome/browser/crash_upload_list_crashpad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698