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); |
} |