| Index: chrome/browser/content_settings/tab_specific_content_settings.cc
|
| diff --git a/chrome/browser/content_settings/tab_specific_content_settings.cc b/chrome/browser/content_settings/tab_specific_content_settings.cc
|
| index 89d968c54e6e377c29f3ba17f05f606c84f2328b..c31cb8f91db977d18fd7422accd793a0417bbb75 100644
|
| --- a/chrome/browser/content_settings/tab_specific_content_settings.cc
|
| +++ b/chrome/browser/content_settings/tab_specific_content_settings.cc
|
| @@ -49,7 +49,6 @@
|
| using content::BrowserThread;
|
| using content::NavigationController;
|
| using content::NavigationEntry;
|
| -using content::RenderViewHost;
|
| using content::WebContents;
|
|
|
| DEFINE_WEB_CONTENTS_USER_DATA_KEY(TabSpecificContentSettings);
|
| @@ -135,17 +134,13 @@ TabSpecificContentSettings::~TabSpecificContentSettings() {
|
|
|
| // static
|
| TabSpecificContentSettings* TabSpecificContentSettings::Get(
|
| - int render_process_id, int render_view_id) {
|
| + content::RenderFrameHost* render_frame_host) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
|
|
| - RenderViewHost* view = RenderViewHost::FromID(render_process_id,
|
| - render_view_id);
|
| - if (!view)
|
| - return NULL;
|
| -
|
| - WebContents* web_contents = WebContents::FromRenderViewHost(view);
|
| + WebContents* web_contents =
|
| + WebContents::FromRenderFrameHost(render_frame_host);
|
| if (!web_contents)
|
| - return NULL;
|
| + return nullptr;
|
|
|
| return TabSpecificContentSettings::FromWebContents(web_contents);
|
| }
|
|
|