Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1076)

Unified Diff: chrome/browser/extensions/extension_tab_helper.cc

Issue 10700202: Add Android stub implementation for AppNotifyChannelUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added a Create method to the interface Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_impl.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_tab_helper.cc
diff --git a/chrome/browser/extensions/extension_tab_helper.cc b/chrome/browser/extensions/extension_tab_helper.cc
index b7519268e65216b7c820e36104b0858960d2f412..451bc1e4b9e90b81f808343f53266f59f7d2591f 100644
--- a/chrome/browser/extensions/extension_tab_helper.cc
+++ b/chrome/browser/extensions/extension_tab_helper.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/extensions/extension_tab_helper.h"
#include "chrome/browser/extensions/crx_installer.h"
+#include "chrome/browser/extensions/app_notify_channel_ui.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/page_action_controller.h"
#include "chrome/browser/extensions/script_badge_controller.h"
@@ -200,7 +201,8 @@ bool ExtensionTabHelper::OnMessageReceived(const IPC::Message& message) {
void ExtensionTabHelper::OnDidGetApplicationInfo(
int32 page_id, const WebApplicationInfo& info) {
-#if !defined(OS_MACOSX)
+ // Android does not implement BrowserWindow.
+#if !defined(OS_MACOSX) && !defined(OS_ANDROID)
web_app_info_ = info;
NavigationEntry* entry =
@@ -269,7 +271,6 @@ void ExtensionTabHelper::OnGetAppNotifyChannel(
const std::string& client_id,
int return_route_id,
int callback_id) {
-
// Check for permission first.
Profile* profile =
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
@@ -299,7 +300,7 @@ void ExtensionTabHelper::OnGetAppNotifyChannel(
return;
}
- AppNotifyChannelUI* ui = new AppNotifyChannelUIImpl(
+ AppNotifyChannelUI* ui = AppNotifyChannelUI::Create(
profile, tab_contents(), extension->name(),
AppNotifyChannelUI::NOTIFICATION_INFOBAR);
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_impl.cc ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698