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

Side by Side Diff: chrome/test/testing_profile.cc

Issue 5359005: Moved deleting the indexed db context to the WebKitContext destructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Niptucked. Created 10 years 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
« no previous file with comments | « chrome/browser/profile_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 return geolocation_permission_context_.get(); 467 return geolocation_permission_context_.get();
468 } 468 }
469 469
470 void TestingProfile::set_session_service(SessionService* session_service) { 470 void TestingProfile::set_session_service(SessionService* session_service) {
471 session_service_ = session_service; 471 session_service_ = session_service;
472 } 472 }
473 473
474 WebKitContext* TestingProfile::GetWebKitContext() { 474 WebKitContext* TestingProfile::GetWebKitContext() {
475 if (webkit_context_ == NULL) 475 if (webkit_context_ == NULL)
476 webkit_context_ = new WebKitContext(this); 476 webkit_context_ = new WebKitContext(this, false);
477 return webkit_context_; 477 return webkit_context_;
478 } 478 }
479 479
480 NTPResourceCache* TestingProfile::GetNTPResourceCache() { 480 NTPResourceCache* TestingProfile::GetNTPResourceCache() {
481 if (!ntp_resource_cache_.get()) 481 if (!ntp_resource_cache_.get())
482 ntp_resource_cache_.reset(new NTPResourceCache(this)); 482 ntp_resource_cache_.reset(new NTPResourceCache(this));
483 return ntp_resource_cache_.get(); 483 return ntp_resource_cache_.get();
484 } 484 }
485 485
486 DesktopNotificationService* TestingProfile::GetDesktopNotificationService() { 486 DesktopNotificationService* TestingProfile::GetDesktopNotificationService() {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 } 530 }
531 return profile_sync_service_.get(); 531 return profile_sync_service_.get();
532 } 532 }
533 533
534 void TestingProfile::DestroyWebDataService() { 534 void TestingProfile::DestroyWebDataService() {
535 if (!web_data_service_.get()) 535 if (!web_data_service_.get())
536 return; 536 return;
537 537
538 web_data_service_->Shutdown(); 538 web_data_service_->Shutdown();
539 } 539 }
OLDNEW
« no previous file with comments | « chrome/browser/profile_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698