Index: android_webview/native/aw_contents.cc |
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc |
index 28a715f08b80b0fc5762869a11a6fc171bdd2adc..def319fcea7e6059626d1db59e587ddf95a8a473 100644 |
--- a/android_webview/native/aw_contents.cc |
+++ b/android_webview/native/aw_contents.cc |
@@ -42,6 +42,7 @@ |
#include "base/memory/memory_pressure_listener.h" |
#include "base/message_loop/message_loop.h" |
#include "base/pickle.h" |
+#include "base/stl_util.h" |
#include "base/strings/string16.h" |
#include "base/supports_user_data.h" |
#include "components/autofill/content/browser/content_autofill_driver_factory.h" |
@@ -843,7 +844,7 @@ jboolean AwContents::RestoreFromOpaqueState( |
std::vector<uint8> state_vector; |
base::android::JavaByteArrayToByteVector(env, state, &state_vector); |
- Pickle pickle(reinterpret_cast<const char*>(state_vector.begin()), |
+ Pickle pickle(reinterpret_cast<const char*>(vector_as_array(&state_vector)), |
state_vector.size()); |
PickleIterator iterator(pickle); |