| Index: chrome/browser/visitedlink/visitedlink_event_listener.cc
|
| ===================================================================
|
| --- chrome/browser/visitedlink/visitedlink_event_listener.cc (revision 94334)
|
| +++ chrome/browser/visitedlink/visitedlink_event_listener.cc (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -122,8 +122,7 @@
|
| for (Updaters::iterator i = updaters_.begin(); i != updaters_.end(); ++i) {
|
| // Make sure to not send to incognito renderers.
|
| RenderProcessHost* process = RenderProcessHost::FromID(i->first);
|
| - Profile* profile = Profile::FromBrowserContext(process->browser_context());
|
| - VisitedLinkMaster* master = profile->GetVisitedLinkMaster();
|
| + VisitedLinkMaster* master = process->profile()->GetVisitedLinkMaster();
|
| if (master && master->shared_memory() == table_memory)
|
| i->second->SendVisitedLinkTable(table_memory);
|
| }
|
| @@ -170,9 +169,7 @@
|
|
|
| // Initialize support for visited links. Send the renderer process its
|
| // initial set of visited links.
|
| - Profile* profile =
|
| - Profile::FromBrowserContext(process->browser_context());
|
| - VisitedLinkMaster* master = profile->GetVisitedLinkMaster();
|
| + VisitedLinkMaster* master = process->profile()->GetVisitedLinkMaster();
|
| if (!master)
|
| return;
|
|
|
|
|