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

Unified Diff: chrome/browser/extensions/app_notify_channel_ui_impl.h

Issue 12680004: Remove chrome/ code to handle App Notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 7 years, 9 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.h
diff --git a/chrome/browser/extensions/app_notify_channel_ui_impl.h b/chrome/browser/extensions/app_notify_channel_ui_impl.h
deleted file mode 100644
index 0f3791b5c68ac299264c36f3d23c23e66ce449a6..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/app_notify_channel_ui_impl.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
-#define CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/api/sync/profile_sync_service_observer.h"
-#include "chrome/browser/extensions/app_notify_channel_ui.h"
-
-class Profile;
-
-namespace content {
-class WebContents;
-}
-
-namespace extensions {
-
-class AppNotifyChannelUIImpl : public AppNotifyChannelUI,
- public ProfileSyncServiceObserver {
- public:
- AppNotifyChannelUIImpl(Profile* profile,
- content::WebContents* web_contents,
- const std::string& app_name,
- AppNotifyChannelUI::UIType ui_type);
- virtual ~AppNotifyChannelUIImpl();
-
- // AppNotifyChannelUI.
- virtual void PromptSyncSetup(AppNotifyChannelUI::Delegate* delegate) OVERRIDE;
-
- // Called by our InfoBar when it's accepted or cancelled/closed.
- void OnInfoBarResult(bool accepted);
-
- private:
- // ProfileSyncServiceObserver.
- virtual void OnStateChanged() OVERRIDE;
-
- void StartObservingSync();
- void StopObservingSync();
-
- Profile* profile_;
- content::WebContents* web_contents_;
- std::string app_name_;
- AppNotifyChannelUI::UIType ui_type_;
- AppNotifyChannelUI::Delegate* delegate_;
-
- // Have we registered ourself as a ProfileSyncServiceObserver?
- bool observing_sync_;
-
- // This is for working around a bug that ProfileSyncService calls
- // ProfileSyncServiceObserver::OnStateChanged callback many times
- // after ShowLoginDialog is called and before the wizard is
- // actually visible to the user. So we record if the wizard was
- // shown to user and then wait for wizard to get dismissed.
- // See crbug.com/101842.
- bool wizard_shown_to_user_;
-
- DISALLOW_COPY_AND_ASSIGN(AppNotifyChannelUIImpl);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFY_CHANNEL_UI_IMPL_H_
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_ui_android.cc ('k') | chrome/browser/extensions/app_notify_channel_ui_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698