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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « chrome/browser/android/tab_android.h ('k') | chrome/browser/android/tab_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 7f54e987f240ee92002f71eef8bca70815f12c1b..b67860c6f8e261911c735428b54dea7e8679fa50 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/android/tab_android.h"
+#include <stddef.h>
+
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/android/jni_string.h"
@@ -224,9 +226,8 @@ void TabAndroid::HandlePopupNavigation(chrome::NavigateParams* params) {
params->browser_initiated_post_data.get() &&
params->browser_initiated_post_data.get()->size()) {
jpost_data = ToJavaByteArray(
- env,
- reinterpret_cast<const uint8*>(
- params->browser_initiated_post_data.get()->front()),
+ env, reinterpret_cast<const uint8_t*>(
+ params->browser_initiated_post_data.get()->front()),
params->browser_initiated_post_data.get()->size());
}
Java_Tab_openNewTab(env,
@@ -596,7 +597,7 @@ TabAndroid::TabLoadStatus TabAndroid::LoadUrl(
if (j_post_data) {
load_params.load_type =
content::NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST;
- std::vector<uint8> post_data;
+ std::vector<uint8_t> post_data;
base::android::JavaByteArrayToByteVector(env, j_post_data, &post_data);
load_params.browser_initiated_post_data =
base::RefCountedBytes::TakeVector(&post_data);
« no previous file with comments | « chrome/browser/android/tab_android.h ('k') | chrome/browser/android/tab_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698