| Index: android_webview/native/state_serializer.cc
|
| diff --git a/android_webview/native/state_serializer.cc b/android_webview/native/state_serializer.cc
|
| index e6577bd191c8879ae7d2819d05159c166325252e..22139a279e1367a1e56e8d69ec4a3ae3938e7977 100644
|
| --- a/android_webview/native/state_serializer.cc
|
| +++ b/android_webview/native/state_serializer.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/memory/scoped_vector.h"
|
| #include "base/pickle.h"
|
| #include "base/time/time.h"
|
| #include "content/public/browser/child_process_security_policy.h"
|
| @@ -95,14 +94,14 @@ bool RestoreFromPickle(base::PickleIterator* iterator,
|
| if (selected_entry >= entry_count)
|
| return false;
|
|
|
| - ScopedVector<content::NavigationEntry> restored_entries;
|
| + std::vector<scoped_ptr<content::NavigationEntry>> entries;
|
| + entries.reserve(entry_count);
|
| for (int i = 0; i < entry_count; ++i) {
|
| - restored_entries.push_back(content::NavigationEntry::Create());
|
| - if (!internal::RestoreNavigationEntryFromPickle(iterator,
|
| - restored_entries[i]))
|
| + entries.push_back(content::NavigationEntry::Create());
|
| + if (!internal::RestoreNavigationEntryFromPickle(iterator, entries[i].get()))
|
| return false;
|
|
|
| - restored_entries[i]->SetPageID(i);
|
| + entries[i]->SetPageID(i);
|
| }
|
|
|
| // |web_contents| takes ownership of these entries after this call.
|
| @@ -110,8 +109,8 @@ bool RestoreFromPickle(base::PickleIterator* iterator,
|
| controller.Restore(
|
| selected_entry,
|
| content::NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY,
|
| - &restored_entries);
|
| - DCHECK_EQ(0u, restored_entries.size());
|
| + &entries);
|
| + DCHECK_EQ(0u, entries.size());
|
|
|
| if (controller.GetLastCommittedEntry()) {
|
| // Set up the file access rights for the selected navigation entry.
|
|
|