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

Side by Side Diff: chrome/browser/services/gcm/gcm_profile_service_factory.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/services/gcm/gcm_profile_service_factory.h" 5 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/profiles/incognito_helpers.h" 10 #include "chrome/browser/profiles/incognito_helpers.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return new GCMProfileService(profile->GetPath(), blocking_task_runner); 70 return new GCMProfileService(profile->GetPath(), blocking_task_runner);
71 #else 71 #else
72 return new GCMProfileService( 72 return new GCMProfileService(
73 profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(), 73 profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(),
74 chrome::GetChannel(), 74 chrome::GetChannel(),
75 std::unique_ptr<ProfileIdentityProvider>(new ProfileIdentityProvider( 75 std::unique_ptr<ProfileIdentityProvider>(new ProfileIdentityProvider(
76 SigninManagerFactory::GetForProfile(profile), 76 SigninManagerFactory::GetForProfile(profile),
77 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), 77 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
78 LoginUIServiceFactory::GetShowLoginPopupCallbackForProfile(profile))), 78 LoginUIServiceFactory::GetShowLoginPopupCallbackForProfile(profile))),
79 std::unique_ptr<GCMClientFactory>(new GCMClientFactory), 79 std::unique_ptr<GCMClientFactory>(new GCMClientFactory),
80 content::BrowserThread::GetMessageLoopProxyForThread( 80 content::BrowserThread::GetTaskRunnerForThread(
81 content::BrowserThread::UI), 81 content::BrowserThread::UI),
82 content::BrowserThread::GetMessageLoopProxyForThread( 82 content::BrowserThread::GetTaskRunnerForThread(
83 content::BrowserThread::IO), 83 content::BrowserThread::IO),
84 blocking_task_runner); 84 blocking_task_runner);
85 #endif 85 #endif
86 } 86 }
87 87
88 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse( 88 content::BrowserContext* GCMProfileServiceFactory::GetBrowserContextToUse(
89 content::BrowserContext* context) const { 89 content::BrowserContext* context) const {
90 return chrome::GetBrowserContextOwnInstanceInIncognito(context); 90 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
91 } 91 }
92 92
93 } // namespace gcm 93 } // namespace gcm
OLDNEW
« no previous file with comments | « chrome/browser/service_process/service_process_control.cc ('k') | chrome/browser/services/gcm/gcm_profile_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698