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

Side by Side Diff: chrome/browser/signin/signin_names_io_thread.cc

Issue 18644007: Update some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/signin/signin_names_io_thread.h" 5 #include "chrome/browser/signin/signin_names_io_thread.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/profiles/profile_info_cache.h" 11 #include "chrome/browser/profiles/profile_info_cache.h"
11 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/browser/signin/signin_manager.h" 13 #include "chrome/browser/signin/signin_manager.h"
13 #include "chrome/common/chrome_notification_types.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
16 16
17 SigninNamesOnIOThread::SigninNamesOnIOThread() { 17 SigninNamesOnIOThread::SigninNamesOnIOThread() {
18 CheckOnUIThread(); 18 CheckOnUIThread();
19 19
20 // We want to register for all profiles, not just for the current profile. 20 // We want to register for all profiles, not just for the current profile.
21 registrar_.reset(new content::NotificationRegistrar); 21 registrar_.reset(new content::NotificationRegistrar);
22 registrar_->Add(this, chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL, 22 registrar_->Add(this, chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL,
23 content::NotificationService::AllSources()); 23 content::NotificationService::AllSources());
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void SigninNamesOnIOThread::UpdateOnIOThread( 105 void SigninNamesOnIOThread::UpdateOnIOThread(
106 int type, 106 int type,
107 const string16& email) { 107 const string16& email) {
108 CheckOnIOThread(); 108 CheckOnIOThread();
109 if (type == chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL) { 109 if (type == chrome::NOTIFICATION_GOOGLE_SIGNIN_SUCCESSFUL) {
110 emails_.insert(email); 110 emails_.insert(email);
111 } else { 111 } else {
112 emails_.erase(email); 112 emails_.erase(email);
113 } 113 }
114 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_unittest.cc ('k') | chrome/browser/signin/signin_names_io_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698