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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2759333002: Move chrome-specific SerializedNavigation code to chrome/. (Closed)
Patch Set: Rebase, fix Android? Created 3 years, 9 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 570f33c4b9033c9cb8cab581dfc506b585bc0133..3a3e7627ac96cf83b7616ec5704ef7226e735d64 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -85,6 +85,7 @@
#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/profiles/profiles_state.h"
+#include "chrome/browser/sessions/session_common_utils.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/tracing/navigation_tracing.h"
#include "chrome/browser/translate/translate_service.h"
@@ -133,6 +134,7 @@
#include "components/prefs/pref_value_store.h"
#include "components/prefs/scoped_user_pref_update.h"
#include "components/rappor/rappor_service_impl.h"
+#include "components/sessions/core/serialized_navigation_driver.h"
#include "components/signin/core/common/profile_management_switches.h"
#include "components/startup_metric_utils/browser/startup_metric_utils.h"
#include "components/tracing/common/tracing_switches.h"
@@ -1389,6 +1391,9 @@ void ChromeBrowserMainParts::PreBrowserStart() {
// available at no cost in an indexed format. This enables activating
// subresource filtering, if needed, also for page loads on start-up.
g_browser_process->subresource_filter_ruleset_service();
+
+ sessions::SerializedNavigationDriver::SetSanitizeCallback(
+ base::Bind(&SanitizeNavigation));
}
void ChromeBrowserMainParts::PostBrowserStart() {

Powered by Google App Engine
This is Rietveld 408576698