OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/theme_provider.h" | 7 #include "app/theme_provider.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 } | 1103 } |
1104 return download_manager_.get(); | 1104 return download_manager_.get(); |
1105 } | 1105 } |
1106 | 1106 |
1107 bool ProfileImpl::HasCreatedDownloadManager() const { | 1107 bool ProfileImpl::HasCreatedDownloadManager() const { |
1108 return created_download_manager_; | 1108 return created_download_manager_; |
1109 } | 1109 } |
1110 | 1110 |
1111 void ProfileImpl::InitThemes() { | 1111 void ProfileImpl::InitThemes() { |
1112 if (!created_theme_provider_) { | 1112 if (!created_theme_provider_) { |
1113 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 1113 #if defined(OS_LINUX) |
1114 theme_provider_.reset(new GtkThemeProvider); | 1114 theme_provider_.reset(new GtkThemeProvider); |
1115 #else | 1115 #else |
1116 theme_provider_.reset(new BrowserThemeProvider); | 1116 theme_provider_.reset(new BrowserThemeProvider); |
1117 #endif | 1117 #endif |
1118 theme_provider_->Init(this); | 1118 theme_provider_->Init(this); |
1119 created_theme_provider_ = true; | 1119 created_theme_provider_ = true; |
1120 } | 1120 } |
1121 } | 1121 } |
1122 | 1122 |
1123 void ProfileImpl::SetTheme(Extension* extension) { | 1123 void ProfileImpl::SetTheme(Extension* extension) { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 #endif | 1377 #endif |
1378 return NULL; | 1378 return NULL; |
1379 } | 1379 } |
1380 | 1380 |
1381 void ProfileImpl::InitSyncService() { | 1381 void ProfileImpl::InitSyncService() { |
1382 #ifdef CHROME_PERSONALIZATION | 1382 #ifdef CHROME_PERSONALIZATION |
1383 sync_service_.reset(new ProfileSyncService(this)); | 1383 sync_service_.reset(new ProfileSyncService(this)); |
1384 sync_service_->Initialize(); | 1384 sync_service_->Initialize(); |
1385 #endif | 1385 #endif |
1386 } | 1386 } |
OLD | NEW |