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

Side by Side Diff: base/android/build_info.h

Issue 1187433006: Load language .pak files directly from the apk when using splits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@locale-res-or-file
Patch Set: Fix ui_base_unittest failure (allow locale paks to be loaded multiple times) Created 5 years, 6 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 | « no previous file | base/android/build_info.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef BASE_ANDROID_BUILD_INFO_H_ 5 #ifndef BASE_ANDROID_BUILD_INFO_H_
6 #define BASE_ANDROID_BUILD_INFO_H_ 6 #define BASE_ANDROID_BUILD_INFO_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 } 89 }
90 90
91 const char* build_type() const { 91 const char* build_type() const {
92 return build_type_; 92 return build_type_;
93 } 93 }
94 94
95 int sdk_int() const { 95 int sdk_int() const {
96 return sdk_int_; 96 return sdk_int_;
97 } 97 }
98 98
99 int has_apk_splits() const {
100 return has_apk_splits_;
101 }
102
99 const char* java_exception_info() const { 103 const char* java_exception_info() const {
100 return java_exception_info_; 104 return java_exception_info_;
101 } 105 }
102 106
103 void SetJavaExceptionInfo(const std::string& info); 107 void SetJavaExceptionInfo(const std::string& info);
104 108
105 void ClearJavaExceptionInfo(); 109 void ClearJavaExceptionInfo();
106 110
107 static bool RegisterBindings(JNIEnv* env); 111 static bool RegisterBindings(JNIEnv* env);
108 112
(...skipping 11 matching lines...) Expand all
120 const char* const model_; 124 const char* const model_;
121 const char* const brand_; 125 const char* const brand_;
122 const char* const android_build_id_; 126 const char* const android_build_id_;
123 const char* const android_build_fp_; 127 const char* const android_build_fp_;
124 const char* const package_version_code_; 128 const char* const package_version_code_;
125 const char* const package_version_name_; 129 const char* const package_version_name_;
126 const char* const package_label_; 130 const char* const package_label_;
127 const char* const package_name_; 131 const char* const package_name_;
128 const char* const build_type_; 132 const char* const build_type_;
129 const int sdk_int_; 133 const int sdk_int_;
134 const bool has_apk_splits_;
130 // This is set via set_java_exception_info, not at constructor time. 135 // This is set via set_java_exception_info, not at constructor time.
131 const char* java_exception_info_; 136 const char* java_exception_info_;
132 137
133 DISALLOW_COPY_AND_ASSIGN(BuildInfo); 138 DISALLOW_COPY_AND_ASSIGN(BuildInfo);
134 }; 139 };
135 140
136 } // namespace android 141 } // namespace android
137 } // namespace base 142 } // namespace base
138 143
139 #endif // BASE_ANDROID_BUILD_INFO_H_ 144 #endif // BASE_ANDROID_BUILD_INFO_H_
OLDNEW
« 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