OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 5 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 ExtensionIconSet::MATCH_BIGGER, | 127 ExtensionIconSet::MATCH_BIGGER, |
128 false, &icon_small_exists); | 128 false, &icon_small_exists); |
129 value->SetString("icon_small", icon_small.spec()); | 129 value->SetString("icon_small", icon_small.spec()); |
130 value->SetBoolean("icon_small_exists", icon_small_exists); | 130 value->SetBoolean("icon_small_exists", icon_small_exists); |
131 value->SetInteger("launch_container", extension->launch_container()); | 131 value->SetInteger("launch_container", extension->launch_container()); |
132 ExtensionPrefs* prefs = service->extension_prefs(); | 132 ExtensionPrefs* prefs = service->extension_prefs(); |
133 value->SetInteger("launch_type", | 133 value->SetInteger("launch_type", |
134 prefs->GetLaunchType(extension, | 134 prefs->GetLaunchType(extension, |
135 ExtensionPrefs::LAUNCH_DEFAULT)); | 135 ExtensionPrefs::LAUNCH_DEFAULT)); |
136 value->SetBoolean("is_component", | 136 value->SetBoolean("is_component", |
137 extension->location() == Extension::COMPONENT); | 137 extension->location() == extensions::Manifest::COMPONENT); |
138 value->SetBoolean("is_webstore", | 138 value->SetBoolean("is_webstore", |
139 extension->id() == extension_misc::kWebStoreAppId); | 139 extension->id() == extension_misc::kWebStoreAppId); |
140 | 140 |
141 if (extension->HasAPIPermission( | 141 if (extension->HasAPIPermission( |
142 extensions::APIPermission::kAppNotifications)) { | 142 extensions::APIPermission::kAppNotifications)) { |
143 value->SetBoolean("notifications_disabled", | 143 value->SetBoolean("notifications_disabled", |
144 prefs->IsAppNotificationDisabled(extension->id())); | 144 prefs->IsAppNotificationDisabled(extension->id())); |
145 } | 145 } |
146 | 146 |
147 if (notification) | 147 if (notification) |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 ExtensionUninstallDialog* AppLauncherHandler::GetExtensionUninstallDialog() { | 884 ExtensionUninstallDialog* AppLauncherHandler::GetExtensionUninstallDialog() { |
885 if (!extension_uninstall_dialog_.get()) { | 885 if (!extension_uninstall_dialog_.get()) { |
886 Browser* browser = chrome::FindBrowserWithWebContents( | 886 Browser* browser = chrome::FindBrowserWithWebContents( |
887 web_ui()->GetWebContents()); | 887 web_ui()->GetWebContents()); |
888 extension_uninstall_dialog_.reset( | 888 extension_uninstall_dialog_.reset( |
889 ExtensionUninstallDialog::Create(extension_service_->profile(), | 889 ExtensionUninstallDialog::Create(extension_service_->profile(), |
890 browser, this)); | 890 browser, this)); |
891 } | 891 } |
892 return extension_uninstall_dialog_.get(); | 892 return extension_uninstall_dialog_.get(); |
893 } | 893 } |
OLD | NEW |