OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/crash_report/breakpad_helper.h" | 5 #include "ios/chrome/browser/crash_report/breakpad_helper.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
| 8 #include <stddef.h> |
8 | 9 |
9 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 11 #include "base/bind.h" |
11 #include "base/debug/crash_logging.h" | 12 #include "base/debug/crash_logging.h" |
12 #include "base/files/file_enumerator.h" | 13 #include "base/files/file_enumerator.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
15 #include "base/location.h" | 16 #include "base/location.h" |
16 #include "base/logging.h" | 17 #include "base/logging.h" |
17 #include "base/path_service.h" | 18 #include "base/path_service.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 void RestoreDefaultConfiguration() { | 360 void RestoreDefaultConfiguration() { |
360 if (!g_crash_reporter_enabled) | 361 if (!g_crash_reporter_enabled) |
361 return; | 362 return; |
362 [[BreakpadController sharedInstance] stop]; | 363 [[BreakpadController sharedInstance] stop]; |
363 [[BreakpadController sharedInstance] resetConfiguration]; | 364 [[BreakpadController sharedInstance] resetConfiguration]; |
364 [[BreakpadController sharedInstance] start:NO]; | 365 [[BreakpadController sharedInstance] start:NO]; |
365 [[BreakpadController sharedInstance] setUploadingEnabled:NO]; | 366 [[BreakpadController sharedInstance] setUploadingEnabled:NO]; |
366 } | 367 } |
367 | 368 |
368 } // namespace breakpad_helper | 369 } // namespace breakpad_helper |
OLD | NEW |