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

Side by Side Diff: base/android/java/src/org/chromium/base/BuildInfo.java

Issue 113873006: [Android] Disable tombstones for renderer crashes on JB MR2+ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « base/android/build_info.cc ('k') | components/breakpad/app/breakpad_linux.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 package org.chromium.base; 5 package org.chromium.base;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.pm.ApplicationInfo; 8 import android.content.pm.ApplicationInfo;
9 import android.content.pm.PackageInfo; 9 import android.content.pm.PackageInfo;
10 import android.content.pm.PackageManager; 10 import android.content.pm.PackageManager;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 } 103 }
104 104
105 @CalledByNative 105 @CalledByNative
106 public static String getPackageName(Context context) { 106 public static String getPackageName(Context context) {
107 String packageName = context != null ? context.getPackageName() : null; 107 String packageName = context != null ? context.getPackageName() : null;
108 return packageName != null ? packageName : ""; 108 return packageName != null ? packageName : "";
109 } 109 }
110 110
111 @CalledByNative 111 @CalledByNative
112 public static String getBuildType() {
113 return Build.TYPE;
114 }
115
116 @CalledByNative
112 public static int getSdkInt() { 117 public static int getSdkInt() {
113 return Build.VERSION.SDK_INT; 118 return Build.VERSION.SDK_INT;
114 } 119 }
115 } 120 }
OLDNEW
« no previous file with comments | « base/android/build_info.cc ('k') | components/breakpad/app/breakpad_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698