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

Unified Diff: chrome/browser/supervised_user/supervised_user_navigation_observer.cc

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test broken by rebase Created 5 years, 2 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
Index: chrome/browser/supervised_user/supervised_user_navigation_observer.cc
diff --git a/chrome/browser/supervised_user/supervised_user_navigation_observer.cc b/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
index 8199fb1bbf2b67c84a1fdf063e87eab687b30871..e05127df138db632c2de8350f84dec6d3b800140 100644
--- a/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
+++ b/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
@@ -15,6 +15,7 @@
#include "components/history/content/browser/history_context_helper.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/browser/history_types.h"
+#include "components/sessions/content/content_serialized_navigation_builder.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/navigation_entry.h"
@@ -85,7 +86,12 @@ void SupervisedUserNavigationObserver::OnRequestBlockedInternal(
scoped_ptr<NavigationEntry> entry(NavigationEntry::Create());
entry->SetVirtualURL(url);
entry->SetTimestamp(timestamp);
- blocked_navigations_.push_back(entry.release());
+ scoped_ptr<sessions::SerializedNavigationEntry> serialized_entry(
+ new sessions::SerializedNavigationEntry());
+ *serialized_entry =
+ sessions::ContentSerializedNavigationBuilder::FromNavigationEntry(
+ blocked_navigations_.size(), *entry);
+ blocked_navigations_.push_back(serialized_entry.release());
supervised_user_service_->DidBlockNavigation(web_contents_);
}

Powered by Google App Engine
This is Rietveld 408576698