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

Side by Side Diff: components/crash/content/app/breakpad_linux.cc

Issue 2677563006: android: Report java exception in child (Closed)
Patch Set: remove braces Created 3 years, 10 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/app/chrome_main_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // For linux_syscall_support.h. This makes it safe to call embedded system 5 // For linux_syscall_support.h. This makes it safe to call embedded system
6 // calls when in seccomp mode. 6 // calls when in seccomp mode.
7 7
8 #include "components/crash/content/app/breakpad_linux.h" 8 #include "components/crash/content/app/breakpad_linux.h"
9 9
10 #include <fcntl.h> 10 #include <fcntl.h>
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 // On Android we need to provide a FD to the file where the minidump is 1920 // On Android we need to provide a FD to the file where the minidump is
1921 // generated as the renderer and browser run with different UIDs 1921 // generated as the renderer and browser run with different UIDs
1922 // (preventing the browser from inspecting the renderer process). 1922 // (preventing the browser from inspecting the renderer process).
1923 int minidump_fd = base::GlobalDescriptors::GetInstance()->MaybeGet( 1923 int minidump_fd = base::GlobalDescriptors::GetInstance()->MaybeGet(
1924 GetCrashReporterClient()->GetAndroidMinidumpDescriptor()); 1924 GetCrashReporterClient()->GetAndroidMinidumpDescriptor());
1925 if (minidump_fd < 0) { 1925 if (minidump_fd < 0) {
1926 NOTREACHED() << "Could not find minidump FD, crash reporting disabled."; 1926 NOTREACHED() << "Could not find minidump FD, crash reporting disabled.";
1927 } else { 1927 } else {
1928 InitCrashKeys(); 1928 InitCrashKeys();
1929 EnableNonBrowserCrashDumping(process_type, minidump_fd); 1929 EnableNonBrowserCrashDumping(process_type, minidump_fd);
1930 PostEnableBreakpadInitialization();
1930 } 1931 }
1931 } 1932 }
1932 } 1933 }
1933 1934
1934 // The microdump handler does NOT upload anything. It just dumps out on the 1935 // The microdump handler does NOT upload anything. It just dumps out on the
1935 // system console (logcat) a restricted and serialized variant of a minidump. 1936 // system console (logcat) a restricted and serialized variant of a minidump.
1936 // See crbug.com/410294 for more details. 1937 // See crbug.com/410294 for more details.
1937 void InitMicrodumpCrashHandlerIfNecessary(const std::string& process_type) { 1938 void InitMicrodumpCrashHandlerIfNecessary(const std::string& process_type) {
1938 if (!GetCrashReporterClient()->ShouldEnableBreakpadMicrodumps()) 1939 if (!GetCrashReporterClient()->ShouldEnableBreakpadMicrodumps())
1939 return; 1940 return;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 void SuppressDumpGeneration() { 1975 void SuppressDumpGeneration() {
1975 g_dumps_suppressed = G_DUMPS_SUPPRESSED_MAGIC; 1976 g_dumps_suppressed = G_DUMPS_SUPPRESSED_MAGIC;
1976 } 1977 }
1977 #endif // OS_ANDROID 1978 #endif // OS_ANDROID
1978 1979
1979 bool IsCrashReporterEnabled() { 1980 bool IsCrashReporterEnabled() {
1980 return g_is_crash_reporter_enabled; 1981 return g_is_crash_reporter_enabled;
1981 } 1982 }
1982 1983
1983 } // namespace breakpad 1984 } // namespace breakpad
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698