| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| index 83e24d10199704da5eb312d967902a7148d6800b..c857695abe29ef85c9341614f29432a4a4380ddd 100644
|
| --- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| @@ -33,6 +33,7 @@
|
| #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
|
| #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| +#include "chrome/common/extensions/app_launcher_info.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_constants.h"
|
| #include "chrome/common/extensions/extension_icon_set.h"
|
| @@ -97,7 +98,8 @@ void AppLauncherHandler::CreateAppInfo(
|
| // impede our ability to determine directionality.
|
| string16 name = UTF8ToUTF16(extension->name());
|
| base::i18n::UnadjustStringForLocaleDirection(&name);
|
| - NewTabUI::SetUrlTitleAndDirection(value, name, extension->GetFullLaunchURL());
|
| + NewTabUI::SetUrlTitleAndDirection(
|
| + value, name, extensions::AppLauncherInfo::GetFullLaunchURL(extension));
|
|
|
| bool enabled = service->IsExtensionEnabled(extension->id()) &&
|
| !service->GetTerminatedExtension(extension->id());
|
| @@ -124,7 +126,8 @@ void AppLauncherHandler::CreateAppInfo(
|
| false, &icon_small_exists);
|
| value->SetString("icon_small", icon_small.spec());
|
| value->SetBoolean("icon_small_exists", icon_small_exists);
|
| - value->SetInteger("launch_container", extension->launch_container());
|
| + value->SetInteger("launch_container",
|
| + extensions::AppLauncherInfo::GetLaunchContainer(extension));
|
| ExtensionPrefs* prefs = service->extension_prefs();
|
| value->SetInteger("launch_type",
|
| prefs->GetLaunchType(extension,
|
|
|