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

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

Issue 1001103002: Crashpad! (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sign crashpad_handler 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_content_browser_client.cc ('k') | chrome/browser/crash_upload_list_mac.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 "chrome/common/chrome_paths.h" 9 #include "chrome/common/chrome_paths.h"
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include "chrome/browser/crash_upload_list_win.h" 11 #include "chrome/browser/crash_upload_list_win.h"
12 #elif defined(OS_MACOSX)
13 #include "chrome/browser/crash_upload_list_mac.h"
12 #endif 14 #endif
13 15
14 // static 16 // static
15 const char* CrashUploadList::kReporterLogFilename = "uploads.log"; 17 const char* CrashUploadList::kReporterLogFilename = "uploads.log";
16 18
17 // static 19 // static
18 CrashUploadList* CrashUploadList::Create(Delegate* delegate) { 20 CrashUploadList* CrashUploadList::Create(Delegate* delegate) {
19 base::FilePath crash_dir_path; 21 base::FilePath crash_dir_path;
20 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path); 22 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path);
21 base::FilePath upload_log_path = 23 base::FilePath upload_log_path =
22 crash_dir_path.AppendASCII(kReporterLogFilename); 24 crash_dir_path.AppendASCII(kReporterLogFilename);
23 #if defined(OS_WIN) 25 #if defined(OS_WIN)
24 return new CrashUploadListWin(delegate, upload_log_path); 26 return new CrashUploadListWin(delegate, upload_log_path);
27 #elif defined(OS_MACOSX)
28 return new CrashUploadListMac(delegate, upload_log_path);
25 #else 29 #else
26 return new CrashUploadList(delegate, upload_log_path); 30 return new CrashUploadList(delegate, upload_log_path);
27 #endif 31 #endif
28 } 32 }
29 33
30 CrashUploadList::CrashUploadList(Delegate* delegate, 34 CrashUploadList::CrashUploadList(Delegate* delegate,
31 const base::FilePath& upload_log_path) 35 const base::FilePath& upload_log_path)
32 : UploadList(delegate, upload_log_path) {} 36 : UploadList(delegate, upload_log_path) {}
33 37
34 CrashUploadList::~CrashUploadList() {} 38 CrashUploadList::~CrashUploadList() {}
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/crash_upload_list_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698