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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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/extension_webstore_private_api.cc
===================================================================
--- chrome/browser/extensions/extension_webstore_private_api.cc (revision 91968)
+++ chrome/browser/extensions/extension_webstore_private_api.cc (working copy)
@@ -19,6 +19,7 @@
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/sync/profile_sync_service.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_utility_messages.h"
#include "chrome/common/extensions/extension_constants.h"
@@ -28,7 +29,6 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_details.h"
#include "content/common/notification_source.h"
-#include "content/common/notification_type.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
#include "net/base/escape.h"
@@ -591,10 +591,10 @@
// Start listening for notifications about the token.
TokenService* token_service = profile->GetTokenService();
registrar_.Add(this,
- NotificationType::TOKEN_AVAILABLE,
+ chrome::NOTIFICATION_TOKEN_AVAILABLE,
Source<TokenService>(token_service));
registrar_.Add(this,
- NotificationType::TOKEN_REQUEST_FAILED,
+ chrome::NOTIFICATION_TOKEN_REQUEST_FAILED,
Source<TokenService>(token_service));
GetBrowserSignin(profile)->RequestSignin(tab,
@@ -646,16 +646,16 @@
Release();
}
-void PromptBrowserLoginFunction::Observe(NotificationType type,
+void PromptBrowserLoginFunction::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
// Make sure this notification is for the service we are interested in.
std::string service;
- if (type == NotificationType::TOKEN_AVAILABLE) {
+ if (type == chrome::NOTIFICATION_TOKEN_AVAILABLE) {
TokenService::TokenAvailableDetails* available =
Details<TokenService::TokenAvailableDetails>(details).ptr();
service = available->service();
- } else if (type == NotificationType::TOKEN_REQUEST_FAILED) {
+ } else if (type == chrome::NOTIFICATION_TOKEN_REQUEST_FAILED) {
TokenService::TokenRequestFailedDetails* failed =
Details<TokenService::TokenRequestFailedDetails>(details).ptr();
service = failed->service();

Powered by Google App Engine
This is Rietveld 408576698