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

Unified Diff: chrome/browser/extensions/app_notify_channel_ui_impl.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
Index: chrome/browser/extensions/app_notify_channel_ui_impl.cc
diff --git a/chrome/browser/extensions/app_notify_channel_ui.cc b/chrome/browser/extensions/app_notify_channel_ui_impl.cc
similarity index 95%
rename from chrome/browser/extensions/app_notify_channel_ui.cc
rename to chrome/browser/extensions/app_notify_channel_ui_impl.cc
index f4bd4b04c9b6a970a9d3f2c4c1f0c65749720f72..02a625d544bbb7bafb4678fd62757c5d8626c3ca 100644
--- a/chrome/browser/extensions/app_notify_channel_ui.cc
+++ b/chrome/browser/extensions/app_notify_channel_ui_impl.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/extensions/app_notify_channel_ui.h"
+#include "chrome/browser/extensions/app_notify_channel_ui_impl.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
@@ -110,6 +110,14 @@ AppNotifyChannelUIImpl::~AppNotifyChannelUIImpl() {
CHECK(!observing_sync_);
}
+// static
+AppNotifyChannelUI* AppNotifyChannelUI::Create(Profile* profile,
+ TabContents* tab_contents,
+ const std::string& app_name,
+ AppNotifyChannelUI::UIType ui_type) {
+ return new AppNotifyChannelUIImpl(profile, tab_contents, app_name, ui_type);
+}
+
void AppNotifyChannelUIImpl::PromptSyncSetup(
AppNotifyChannelUI::Delegate* delegate) {
CHECK(delegate_ == NULL);
@@ -164,7 +172,6 @@ void AppNotifyChannelUIImpl::OnInfoBarResult(bool accepted) {
}
void AppNotifyChannelUIImpl::OnStateChanged() {
-#if !defined(OS_ANDROID)
ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
LoginUIService* login_service =
@@ -183,7 +190,6 @@ void AppNotifyChannelUIImpl::OnStateChanged() {
StopObservingSync();
delegate_->OnSyncSetupResult(sync_service->HasSyncSetupCompleted());
}
-#endif // !defined(OS_ANDROID)
}
void AppNotifyChannelUIImpl::StartObservingSync() {
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_impl.h ('k') | chrome/browser/extensions/extension_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698