Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / crash_upload_list.cc
blobf1203542a51e6a9354f0c0a6cb78028088781e18
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
3 // found in the LICENSE file.
5 #include "chrome/browser/crash_upload_list.h"
7 #include "base/files/file_path.h"
8 #include "base/path_service.h"
9 #include "chrome/common/chrome_paths.h"
10 #if defined(OS_WIN)
11 #include "chrome/browser/crash_upload_list_win.h"
12 #elif defined(OS_MACOSX)
13 #include "chrome/browser/crash_upload_list_mac.h"
14 #endif
16 // static
17 const char* CrashUploadList::kReporterLogFilename = "uploads.log";
19 // static
20 CrashUploadList* CrashUploadList::Create(Delegate* delegate) {
21 base::FilePath crash_dir_path;
22 PathService::Get(chrome::DIR_CRASH_DUMPS, &crash_dir_path);
23 base::FilePath upload_log_path =
24 crash_dir_path.AppendASCII(kReporterLogFilename);
25 #if defined(OS_WIN)
26 return new CrashUploadListWin(delegate, upload_log_path);
27 #elif defined(OS_MACOSX)
28 return new CrashUploadListMac(delegate, upload_log_path);
29 #else
30 return new CrashUploadList(delegate, upload_log_path);
31 #endif
34 CrashUploadList::CrashUploadList(Delegate* delegate,
35 const base::FilePath& upload_log_path)
36 : UploadList(delegate, upload_log_path) {}
38 CrashUploadList::~CrashUploadList() {}