| Index: chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| index a9e78ad8b92ec0e478c43a769dded79ece7857f5..041e6ff16e3232e00041f5ff143afd1f80d6b9ec 100644
|
| --- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| +++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.cc
|
| @@ -31,7 +31,6 @@
|
| #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h"
|
| #include "chrome/browser/importer/external_process_importer_host.h"
|
| #include "chrome/browser/importer/importer_uma.h"
|
| -#include "chrome/browser/platform_util.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/chrome_select_file_policy.h"
|
| #include "chrome/common/chrome_paths.h"
|
| @@ -52,6 +51,7 @@
|
| #include "extensions/browser/extension_function_dispatcher.h"
|
| #include "extensions/browser/notification_types.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| +#include "ui/gfx/view_util.h"
|
|
|
| using bookmarks::BookmarkModel;
|
| using bookmarks::BookmarkNode;
|
| @@ -781,9 +781,8 @@ void BookmarksIOFunction::ShowSelectFileDialog(
|
| ui::SelectFileDialog::FileTypeInfo file_type_info;
|
| file_type_info.extensions.resize(1);
|
| file_type_info.extensions[0].push_back(FILE_PATH_LITERAL("html"));
|
| - gfx::NativeWindow owning_window = web_contents ?
|
| - platform_util::GetTopLevel(web_contents->GetNativeView())
|
| - : NULL;
|
| + gfx::NativeWindow owning_window =
|
| + web_contents ? gfx::GetTopLevel(web_contents->GetNativeView()) : nullptr;
|
| // |web_contents| can be NULL (for background pages), which is fine. In such
|
| // a case if file-selection dialogs are forbidden by policy, we will not
|
| // show an InfoBar, which is better than letting one appear out of the blue.
|
|
|