Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / developer_private / entry_picker.cc
index f21371c..9e3b6af 100644 (file)
@@ -11,7 +11,6 @@
 #include "chrome/browser/platform_util.h"
 #include "chrome/browser/ui/chrome_select_file_policy.h"
 #include "content/public/browser/web_contents.h"
-#include "content/public/browser/web_contents_view.h"
 #include "ui/shell_dialogs/select_file_dialog.h"
 
 namespace {
@@ -37,7 +36,7 @@ EntryPicker::EntryPicker(EntryPickerClient* client,
       this, new ChromeSelectFilePolicy(web_contents));
 
   gfx::NativeWindow owning_window = web_contents ?
-      platform_util::GetTopLevel(web_contents->GetView()->GetNativeView()) :
+      platform_util::GetTopLevel(web_contents->GetNativeView()) :
       NULL;
 
   if (g_skip_picker_for_test) {