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

Side by Side Diff: chrome/browser/profile.cc

Issue 2521001: AutoFill: Make PersonalDataManager RefCountedThreadSafe. (Closed)
Patch Set: Fix lints. Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/profile.h" 5 #include "chrome/browser/profile.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "app/theme_provider.h" 8 #include "app/theme_provider.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/env_var.h" 10 #include "base/env_var.h"
(...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 } 1280 }
1281 return download_manager_.get(); 1281 return download_manager_.get();
1282 } 1282 }
1283 1283
1284 bool ProfileImpl::HasCreatedDownloadManager() const { 1284 bool ProfileImpl::HasCreatedDownloadManager() const {
1285 return created_download_manager_; 1285 return created_download_manager_;
1286 } 1286 }
1287 1287
1288 PersonalDataManager* ProfileImpl::GetPersonalDataManager() { 1288 PersonalDataManager* ProfileImpl::GetPersonalDataManager() {
1289 if (!personal_data_manager_.get()) { 1289 if (!personal_data_manager_.get()) {
1290 personal_data_manager_.reset(new PersonalDataManager()); 1290 personal_data_manager_ = new PersonalDataManager();
1291 personal_data_manager_->Init(this); 1291 personal_data_manager_->Init(this);
1292 } 1292 }
1293 return personal_data_manager_.get(); 1293 return personal_data_manager_.get();
1294 } 1294 }
1295 1295
1296 void ProfileImpl::InitThemes() { 1296 void ProfileImpl::InitThemes() {
1297 if (!created_theme_provider_) { 1297 if (!created_theme_provider_) {
1298 #if defined(TOOLKIT_USES_GTK) 1298 #if defined(TOOLKIT_USES_GTK)
1299 theme_provider_.reset(new GtkThemeProvider); 1299 theme_provider_.reset(new GtkThemeProvider);
1300 #else 1300 #else
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 CommandLine::ForCurrentProcess())); 1533 CommandLine::ForCurrentProcess()));
1534 sync_service_.reset( 1534 sync_service_.reset(
1535 profile_sync_factory_->CreateProfileSyncService()); 1535 profile_sync_factory_->CreateProfileSyncService());
1536 sync_service_->Initialize(); 1536 sync_service_->Initialize();
1537 } 1537 }
1538 1538
1539 void ProfileImpl::InitCloudPrintProxyService() { 1539 void ProfileImpl::InitCloudPrintProxyService() {
1540 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this)); 1540 cloud_print_proxy_service_.reset(new CloudPrintProxyService(this));
1541 cloud_print_proxy_service_->Initialize(); 1541 cloud_print_proxy_service_->Initialize();
1542 } 1542 }
OLDNEW
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698