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

Unified Diff: chrome/browser/profile.cc

Issue 113591: Fix Acid3 Test 48: LINKTEST, Chromium side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Made waiting more bearable. Created 11 years, 6 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 | « chrome/browser/profile.h ('k') | chrome/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profile.cc
===================================================================
--- chrome/browser/profile.cc (revision 19822)
+++ chrome/browser/profile.cc (working copy)
@@ -33,6 +33,7 @@
#include "chrome/browser/ssl/ssl_host_state.h"
#include "chrome/browser/thumbnail_store.h"
#include "chrome/browser/visitedlink_master.h"
+#include "chrome/browser/visitedlink_event_listener.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -467,6 +468,7 @@
ProfileImpl::ProfileImpl(const FilePath& path)
: path_(path),
+ visited_link_event_listener_(new VisitedLinkEventListener()),
request_context_(NULL),
media_request_context_(NULL),
extensions_request_context_(NULL),
@@ -661,34 +663,11 @@
return this;
}
-static void BroadcastNewHistoryTable(base::SharedMemory* table_memory) {
- if (!table_memory)
- return;
-
- // send to all RenderProcessHosts
- for (RenderProcessHost::iterator i = RenderProcessHost::begin();
- i != RenderProcessHost::end(); i++) {
- if (!i->second->HasConnection())
- continue;
-
- base::SharedMemoryHandle new_table;
- base::ProcessHandle process = i->second->process().handle();
- if (!process) {
- // process can be null if it's started with the --single-process flag.
- process = base::Process::Current().handle();
- }
-
- table_memory->ShareToProcess(process, &new_table);
- IPC::Message* msg = new ViewMsg_VisitedLink_NewTable(new_table);
- i->second->Send(msg);
- }
-}
-
VisitedLinkMaster* ProfileImpl::GetVisitedLinkMaster() {
if (!visited_link_master_.get()) {
scoped_ptr<VisitedLinkMaster> visited_links(
new VisitedLinkMaster(g_browser_process->file_thread(),
- BroadcastNewHistoryTable, this));
+ visited_link_event_listener_.get(), this));
if (!visited_links->Init())
return NULL;
visited_link_master_.swap(visited_links);
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/renderer_host/browser_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698