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

Unified Diff: base/android/build_info.h

Issue 2835113004: Revert of Android: Refactor BuildInfo to use less jni and remove StrictMode exception (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | base/android/build_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/build_info.h
diff --git a/base/android/build_info.h b/base/android/build_info.h
index 35ae730ef5f7ce47a46924ba4d6225710f77c414..e7dab563fb7688ae375426850f1d4fb63d09ab7a 100644
--- a/base/android/build_info.h
+++ b/base/android/build_info.h
@@ -8,7 +8,6 @@
#include <jni.h>
#include <string>
-#include <vector>
#include "base/base_export.h"
#include "base/macros.h"
@@ -117,27 +116,27 @@
private:
friend struct BuildInfoSingletonTraits;
- explicit BuildInfo(const std::vector<std::string>& params);
+ explicit BuildInfo(JNIEnv* env);
// Const char* is used instead of std::strings because these values must be
// available even if the process is in a crash state. Sadly
// std::string.c_str() doesn't guarantee that memory won't be allocated when
// it is called.
- const char* const brand_;
const char* const device_;
- const char* const android_build_id_;
const char* const manufacturer_;
const char* const model_;
- const int sdk_int_;
- const char* const build_type_;
+ const char* const brand_;
+ const char* const android_build_id_;
+ const char* const android_build_fp_;
+ const char* const gms_version_code_;
+ const char* const package_version_code_;
+ const char* const package_version_name_;
const char* const package_label_;
const char* const package_name_;
- const char* const package_version_code_;
- const char* const package_version_name_;
- const char* const android_build_fp_;
- const char* const gms_version_code_;
+ const char* const build_type_;
// Not needed by breakpad.
const std::string extracted_file_suffix_;
+ const int sdk_int_;
// This is set via set_java_exception_info, not at constructor time.
const char* java_exception_info_;
« no previous file with comments | « no previous file | base/android/build_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698