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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 12221069: Temporary fix for installer/visitedlink crash (crbug.com/171475) (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 181040)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -89,6 +89,7 @@
#include "chrome/browser/ui/uma_browsing_activity_observer.h"
#include "chrome/browser/ui/user_data_dir_dialog.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
+#include "chrome/browser/visitedlink/visitedlink_master.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -1256,6 +1257,15 @@
RLZTracker::InitRlzFromProfileDelayed(profile_, is_first_run_, ping_delay);
#endif // defined(ENABLE_RLZ) && !defined(OS_CHROMEOS)
+ // Force creation of the VisitedLinkMaster so that it catches the visited
+ // links in the first tab. This is a workaround for crbug.com/171475 and
+ // crbug.com/160025 which require that the VisitedLinkMaster be created after
+ // the importer is done, but before page navigation starts.
+ //
+ // Note: This is a temporary fix for M25. In later releases, it has been fixed
+ // by the refactoring of the VisitedLinkMaster functionality.
+ VisitedLinkMaster::FromProfile(profile_);
+
// Configure modules that need access to resources.
net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698