| OLD | NEW |
| 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/test/testing_profile.h" | 5 #include "chrome/test/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/message_loop_proxy.h" | 9 #include "base/message_loop_proxy.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 281 } |
| 282 | 282 |
| 283 void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) { | 283 void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) { |
| 284 theme_provider->Init(this); | 284 theme_provider->Init(this); |
| 285 created_theme_provider_ = true; | 285 created_theme_provider_ = true; |
| 286 theme_provider_.reset(theme_provider); | 286 theme_provider_.reset(theme_provider); |
| 287 } | 287 } |
| 288 | 288 |
| 289 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { | 289 webkit_database::DatabaseTracker* TestingProfile::GetDatabaseTracker() { |
| 290 if (!db_tracker_) | 290 if (!db_tracker_) |
| 291 db_tracker_ = new webkit_database::DatabaseTracker(GetPath()); | 291 db_tracker_ = new webkit_database::DatabaseTracker(GetPath(), false); |
| 292 return db_tracker_; | 292 return db_tracker_; |
| 293 } | 293 } |
| 294 | 294 |
| 295 void TestingProfile::InitThemes() { | 295 void TestingProfile::InitThemes() { |
| 296 if (!created_theme_provider_) { | 296 if (!created_theme_provider_) { |
| 297 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 297 #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) |
| 298 theme_provider_.reset(new GtkThemeProvider); | 298 theme_provider_.reset(new GtkThemeProvider); |
| 299 #else | 299 #else |
| 300 theme_provider_.reset(new BrowserThemeProvider); | 300 theme_provider_.reset(new BrowserThemeProvider); |
| 301 #endif | 301 #endif |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 348 } |
| 349 return profile_sync_service_.get(); | 349 return profile_sync_service_.get(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 void TestingProfile::DestroyWebDataService() { | 352 void TestingProfile::DestroyWebDataService() { |
| 353 if (!web_data_service_.get()) | 353 if (!web_data_service_.get()) |
| 354 return; | 354 return; |
| 355 | 355 |
| 356 web_data_service_->Shutdown(); | 356 web_data_service_->Shutdown(); |
| 357 } | 357 } |
| OLD | NEW |