X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fwebui%2Foptions%2Foptions_handlers_helper.cc;h=3f43637f7e33f07ab9c1398845a4c7cfab50909e;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=f754eacb41ce5c3cb530d3e70144061129a6d795;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/webui/options/options_handlers_helper.cc b/src/chrome/browser/ui/webui/options/options_handlers_helper.cc index f754eac..3f43637 100644 --- a/src/chrome/browser/ui/webui/options/options_handlers_helper.cc +++ b/src/chrome/browser/ui/webui/options/options_handlers_helper.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "apps/shell_window.h" -#include "apps/shell_window_registry.h" +#include "apps/app_window.h" +#include "apps/app_window_registry.h" #include "base/bind.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/profiles/profile_manager.h" @@ -24,12 +24,12 @@ chrome::HostDesktopType GetDesktopType(content::WebUI* web_ui) { if (browser) return browser->host_desktop_type(); - apps::ShellWindow* shell_window = - apps::ShellWindowRegistry::Get(Profile::FromWebUI(web_ui))-> - GetShellWindowForRenderViewHost(web_contents->GetRenderViewHost()); - if (shell_window) { + apps::AppWindow* app_window = + apps::AppWindowRegistry::Get(Profile::FromWebUI(web_ui)) + ->GetAppWindowForRenderViewHost(web_contents->GetRenderViewHost()); + if (app_window) { return chrome::GetHostDesktopTypeForNativeWindow( - shell_window->GetNativeWindow()); + app_window->GetNativeWindow()); } return chrome::GetActiveDesktop();