summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/importer_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:24:31 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:24:31 +0000
commit2d46c8462c1c9104c100ee1f3414db754b897a8f (patch)
treed97575e12d73eaee70516a069bebcde26804a28c /chrome/browser/views/importer_view.cc
parent5190d28cbce355d98236bd06beee5099f4da3790 (diff)
downloadchromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.zip
chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.gz
chromium_src-2d46c8462c1c9104c100ee1f3414db754b897a8f.tar.bz2
Rid most of the Browser object of HWND dependencies.
Review URL: http://codereview.chromium.org/10929 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5492 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/importer_view.cc')
-rw-r--r--chrome/browser/views/importer_view.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/importer_view.cc b/chrome/browser/views/importer_view.cc
index 3d9e93f..87d3001 100644
--- a/chrome/browser/views/importer_view.cc
+++ b/chrome/browser/views/importer_view.cc
@@ -125,7 +125,9 @@ bool ImporterView::Accept() {
Browser* browser = BrowserList::GetLastActive();
int selected_index = profile_combobox_->GetSelectedItem();
- StartImportingWithUI(browser->GetTopLevelHWND(), items, importer_host_.get(),
+ HWND parent_hwnd =
+ reinterpret_cast<HWND>(browser->window()->GetNativeHandle());
+ StartImportingWithUI(parent_hwnd, items, importer_host_.get(),
importer_host_->GetSourceProfileInfoAt(selected_index),
profile_, this, false);
// We return false here to prevent the window from being closed. We will be