#include "chrome/browser/ui/app_list/app_list_view_delegate.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/extensions/application_launch.h"
-#include "chrome/browser/ui/web_applications/web_app_ui.h"
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/browser/web_applications/web_app_mac.h"
#include "chrome/common/chrome_switches.h"
// Distance towards the screen edge that the app list moves from when showing.
const CGFloat kDistanceMovedOnShow = 20;
-ShellIntegration::ShortcutInfo GetAppListShortcutInfo(
+web_app::ShortcutInfo GetAppListShortcutInfo(
const base::FilePath& profile_path) {
- ShellIntegration::ShortcutInfo shortcut_info;
+ web_app::ShortcutInfo shortcut_info;
chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
if (channel == chrome::VersionInfo::CHANNEL_CANARY) {
shortcut_info.title =
}
void CreateAppListShim(const base::FilePath& profile_path) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
+ DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
WebApplicationInfo web_app_info;
- ShellIntegration::ShortcutInfo shortcut_info =
+ web_app::ShortcutInfo shortcut_info =
GetAppListShortcutInfo(profile_path);
ResourceBundle& resource_bundle = ResourceBundle::GetSharedInstance();
*resource_bundle.GetImageSkiaNamed(IDR_APP_LIST_256));
}
- ShellIntegration::ShortcutLocations shortcut_locations;
+ web_app::ShortcutLocations shortcut_locations;
PrefService* local_state = g_browser_process->local_state();
int installed_version =
local_state->GetInteger(prefs::kAppLauncherShortcutVersion);
if (installed_version == 0)
shortcut_locations.in_quick_launch_bar = true;
- web_app::CreateShortcuts(shortcut_info,
- shortcut_locations,
- web_app::SHORTCUT_CREATION_AUTOMATED);
+ web_app::CreateShortcutsForShortcutInfo(
+ web_app::SHORTCUT_CREATION_AUTOMATED,
+ shortcut_locations,
+ shortcut_info);
local_state->SetInteger(prefs::kAppLauncherShortcutVersion,
kShortcutVersion);