diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 23:19:56 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-17 23:19:56 +0000 |
commit | fbb959cbbd75c6dd51cb283464d60deccf947c9e (patch) | |
tree | d66514db390eaa377039da0b4b90ec65af95f7b3 /chrome/browser/tab_contents | |
parent | ec5612443157e7be4a943cd00ef2687a6992d5fa (diff) | |
download | chromium_src-fbb959cbbd75c6dd51cb283464d60deccf947c9e.zip chromium_src-fbb959cbbd75c6dd51cb283464d60deccf947c9e.tar.gz chromium_src-fbb959cbbd75c6dd51cb283464d60deccf947c9e.tar.bz2 |
Pass a gfk::NativeWindow instead of gfx::NativeView for TemplateURLFetcher.
Use cross-platform method to get the NativeWindow.
BUG=13326
Review URL: http://codereview.chromium.org/126302
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-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, |