diff options
Diffstat (limited to 'chrome/browser/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index bb3a80f..8ba705f 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -2019,11 +2019,7 @@ void TabContents::PageHasOSDD(RenderViewHost* render_view_host, // Download the OpenSearch description document. If this is successful a // new keyword will be created when done. -#if defined(OS_WIN) - gfx::NativeView ancestor = GetAncestor(view_->GetNativeView(), GA_ROOT); -#else - gfx::NativeView ancestor = NULL; -#endif + gfx::NativeWindow ancestor = view_->GetTopLevelNativeWindow(); profile()->GetTemplateURLFetcher()->ScheduleDownload( keyword, url, |