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

Side by Side Diff: chrome/service/service_process.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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/service/service_process.h" 5 #include "chrome/service/service_process.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return false; 154 return false;
155 } 155 }
156 blocking_pool_ = new base::SequencedWorkerPool(3, "ServiceBlocking"); 156 blocking_pool_ = new base::SequencedWorkerPool(3, "ServiceBlocking");
157 157
158 request_context_getter_ = new ServiceURLRequestContextGetter(); 158 request_context_getter_ = new ServiceURLRequestContextGetter();
159 159
160 base::FilePath user_data_dir; 160 base::FilePath user_data_dir;
161 PathService::Get(chrome::DIR_USER_DATA, &user_data_dir); 161 PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
162 base::FilePath pref_path = 162 base::FilePath pref_path =
163 user_data_dir.Append(chrome::kServiceStateFileName); 163 user_data_dir.Append(chrome::kServiceStateFileName);
164 service_prefs_.reset( 164 service_prefs_.reset(new ServiceProcessPrefs(
165 new ServiceProcessPrefs( 165 pref_path,
166 pref_path, 166 JsonPrefStore::GetTaskRunnerForFile(pref_path, blocking_pool_.get())));
167 JsonPrefStore::GetTaskRunnerForFile(pref_path, blocking_pool_)));
168 service_prefs_->ReadPrefs(); 167 service_prefs_->ReadPrefs();
169 168
170 // This switch it required to run connector with test gaia. 169 // This switch it required to run connector with test gaia.
171 if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests)) 170 if (command_line.HasSwitch(switches::kIgnoreUrlFetcherCertRequests))
172 net::URLFetcher::SetIgnoreCertificateRequests(true); 171 net::URLFetcher::SetIgnoreCertificateRequests(true);
173 172
174 // Check if a locale override has been specified on the command-line. 173 // Check if a locale override has been specified on the command-line.
175 std::string locale = command_line.GetSwitchValueASCII(switches::kLang); 174 std::string locale = command_line.GetSwitchValueASCII(switches::kLang);
176 if (!locale.empty()) { 175 if (!locale.empty()) {
177 service_prefs_->SetString(prefs::kApplicationLocale, locale); 176 service_prefs_->SetString(prefs::kApplicationLocale, locale);
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 if (enabled_services_ && !ipc_server_->is_client_connected()) { 370 if (enabled_services_ && !ipc_server_->is_client_connected()) {
372 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy(); 371 GetCloudPrintProxy()->CheckCloudPrintProxyPolicy();
373 } 372 }
374 ScheduleCloudPrintPolicyCheck(); 373 ScheduleCloudPrintPolicyCheck();
375 } 374 }
376 375
377 ServiceProcess::~ServiceProcess() { 376 ServiceProcess::~ServiceProcess() {
378 Teardown(); 377 Teardown();
379 g_service_process = NULL; 378 g_service_process = NULL;
380 } 379 }
OLDNEW
« no previous file with comments | « chrome/service/service_ipc_server.h ('k') | chrome/test/automation/automation_handle_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698