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

Unified Diff: base/android/build_info.cc

Issue 10412045: Add java exception information to BuildInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Jay's comment Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/build_info.h ('k') | base/android/jni_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/build_info.cc
diff --git a/base/android/build_info.cc b/base/android/build_info.cc
index 157ce42420f2032037b9a51f898ad6ca153ecccd..34a1575462776b44b851a351fb054e8aa0543b98 100644
--- a/base/android/build_info.cc
+++ b/base/android/build_info.cc
@@ -58,6 +58,11 @@ BuildInfo* BuildInfo::GetInstance() {
return Singleton<BuildInfo, LeakySingletonTraits<BuildInfo> >::get();
}
+void BuildInfo::set_java_exception_info(const std::string& info) {
+ DCHECK(!java_exception_info_) << "info should be set only once.";
+ java_exception_info_ = strndup(info.c_str(), 1024);
+}
+
bool RegisterBuildInfo(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « base/android/build_info.h ('k') | base/android/jni_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698