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

Side by Side Diff: components/gcm_driver/gcm_profile_service.cc

Issue 1546613002: UT changes Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 11 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 "components/gcm_driver/gcm_profile_service.h" 5 #include "components/gcm_driver/gcm_profile_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 #else 138 #else
139 GCMProfileService::GCMProfileService( 139 GCMProfileService::GCMProfileService(
140 PrefService* prefs, 140 PrefService* prefs,
141 base::FilePath path, 141 base::FilePath path,
142 net::URLRequestContextGetter* request_context, 142 net::URLRequestContextGetter* request_context,
143 version_info::Channel channel, 143 version_info::Channel channel,
144 scoped_ptr<ProfileIdentityProvider> identity_provider, 144 scoped_ptr<ProfileIdentityProvider> identity_provider,
145 scoped_ptr<GCMClientFactory> gcm_client_factory, 145 scoped_ptr<GCMClientFactory> gcm_client_factory,
146 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner, 146 const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
147 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner, 147 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
148 scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner) 148 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner)
149 : request_context_(request_context), 149 : request_context_(request_context),
150 profile_identity_provider_(std::move(identity_provider)) { 150 profile_identity_provider_(std::move(identity_provider)) {
151 driver_ = CreateGCMDriverDesktop(std::move(gcm_client_factory), prefs, 151 driver_ = CreateGCMDriverDesktop(std::move(gcm_client_factory), prefs,
152 path.Append(gcm_driver::kGCMStoreDirname), 152 path.Append(gcm_driver::kGCMStoreDirname),
153 request_context_, channel, ui_task_runner, 153 request_context_, channel, ui_task_runner,
154 io_task_runner, blocking_task_runner); 154 io_task_runner, blocking_task_runner);
155 155
156 identity_observer_.reset(new IdentityObserver( 156 identity_observer_.reset(new IdentityObserver(
157 profile_identity_provider_.get(), request_context_, driver_.get())); 157 profile_identity_provider_.get(), request_context_, driver_.get()));
158 } 158 }
(...skipping 17 matching lines...) Expand all
176 driver_.reset(driver); 176 driver_.reset(driver);
177 #if !defined(OS_ANDROID) 177 #if !defined(OS_ANDROID)
178 if (identity_observer_) { 178 if (identity_observer_) {
179 identity_observer_.reset(new IdentityObserver( 179 identity_observer_.reset(new IdentityObserver(
180 profile_identity_provider_.get(), request_context_, driver)); 180 profile_identity_provider_.get(), request_context_, driver));
181 } 181 }
182 #endif // !defined(OS_ANDROID) 182 #endif // !defined(OS_ANDROID)
183 } 183 }
184 184
185 } // namespace gcm 185 } // namespace gcm
OLDNEW
« no previous file with comments | « components/gcm_driver/gcm_profile_service.h ('k') | components/gcm_driver/gcm_profile_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698