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

Unified Diff: chrome/browser/net/gaia/token_service.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/net/gaia/token_service.cc
===================================================================
--- chrome/browser/net/gaia/token_service.cc (revision 106380)
+++ chrome/browser/net/gaia/token_service.cc (working copy)
@@ -12,7 +12,7 @@
#include "chrome/common/net/gaia/gaia_auth_fetcher.h"
#include "chrome/common/net/gaia/gaia_constants.h"
#include "content/browser/browser_thread.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "net/url_request/url_request_context_getter.h"
@@ -228,7 +228,7 @@
const std::string& auth_token) {
TokenAvailableDetails details(service, auth_token);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TOKEN_AVAILABLE,
content::Source<TokenService>(this),
content::Details<const TokenAvailableDetails>(&details));
@@ -239,7 +239,7 @@
const GoogleServiceAuthError& error) {
TokenRequestFailedDetails details(service, error);
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TOKEN_REQUEST_FAILED,
content::Source<TokenService>(this),
content::Details<const TokenRequestFailedDetails>(&details));
@@ -315,10 +315,10 @@
LoadTokensIntoMemory(token_result->GetValue(), &token_map_);
}
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_TOKEN_LOADING_FINISHED,
content::Source<TokenService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
// Load tokens from the db_token map into the in memory token map.
« no previous file with comments | « chrome/browser/net/gaia/gaia_oauth_fetcher_unittest.cc ('k') | chrome/browser/net/http_server_properties_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698