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

Side by Side Diff: chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc

Issue 549313004: Remove implicit conversions from scoped_refptr to T* in c/b/chromeos/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_external_data_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/chromeos/policy/browser_policy_connector_chromeos.h" 5 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 GetBackgroundTaskRunner(), 191 GetBackgroundTaskRunner(),
192 GetBackgroundTaskRunner(), 192 GetBackgroundTaskRunner(),
193 GetBackgroundTaskRunner(), 193 GetBackgroundTaskRunner(),
194 content::BrowserThread::GetMessageLoopProxyForThread( 194 content::BrowserThread::GetMessageLoopProxyForThread(
195 content::BrowserThread::IO), 195 content::BrowserThread::IO),
196 request_context)); 196 request_context));
197 device_local_account_policy_service_->Connect(device_management_service()); 197 device_local_account_policy_service_->Connect(device_management_service());
198 device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator); 198 device_cloud_policy_invalidator_.reset(new DeviceCloudPolicyInvalidator);
199 199
200 // request_context is NULL in unit tests. 200 // request_context is NULL in unit tests.
201 if (request_context && install_attributes_) { 201 if (request_context.get() && install_attributes_) {
202 app_pack_updater_.reset( 202 app_pack_updater_.reset(
203 new AppPackUpdater(request_context, install_attributes_.get())); 203 new AppPackUpdater(request_context.get(), install_attributes_.get()));
204 } 204 }
205 205
206 SetTimezoneIfPolicyAvailable(); 206 SetTimezoneIfPolicyAvailable();
207 207
208 network_configuration_updater_ = 208 network_configuration_updater_ =
209 DeviceNetworkConfigurationUpdater::CreateForDevicePolicy( 209 DeviceNetworkConfigurationUpdater::CreateForDevicePolicy(
210 GetPolicyService(), 210 GetPolicyService(),
211 chromeos::NetworkHandler::Get() 211 chromeos::NetworkHandler::Get()
212 ->managed_network_configuration_handler(), 212 ->managed_network_configuration_handler(),
213 chromeos::NetworkHandler::Get()->network_device_handler(), 213 chromeos::NetworkHandler::Get()->network_device_handler(),
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 // This function is invoked by DCPInitializer, so we should release the 337 // This function is invoked by DCPInitializer, so we should release the
338 // initializer after this function returns. 338 // initializer after this function returns.
339 if (device_cloud_policy_initializer_) { 339 if (device_cloud_policy_initializer_) {
340 device_cloud_policy_initializer_->Shutdown(); 340 device_cloud_policy_initializer_->Shutdown();
341 base::MessageLoop::current()->DeleteSoon( 341 base::MessageLoop::current()->DeleteSoon(
342 FROM_HERE, device_cloud_policy_initializer_.release()); 342 FROM_HERE, device_cloud_policy_initializer_.release());
343 } 343 }
344 } 344 }
345 345
346 } // namespace policy 346 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/device_local_account_external_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698