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

Side by Side Diff: chrome/browser/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
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 "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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 virtual SpellCheckHost* GetSpellCheckHost() { 493 virtual SpellCheckHost* GetSpellCheckHost() {
494 return profile_->GetSpellCheckHost(); 494 return profile_->GetSpellCheckHost();
495 } 495 }
496 496
497 virtual void ReinitializeSpellCheckHost(bool force) { 497 virtual void ReinitializeSpellCheckHost(bool force) {
498 profile_->ReinitializeSpellCheckHost(force); 498 profile_->ReinitializeSpellCheckHost(force);
499 } 499 }
500 500
501 virtual WebKitContext* GetWebKitContext() { 501 virtual WebKitContext* GetWebKitContext() {
502 if (!webkit_context_.get()) 502 if (!webkit_context_.get())
503 webkit_context_ = new WebKitContext(this); 503 webkit_context_ = new WebKitContext(this, false);
504 DCHECK(webkit_context_.get()); 504 DCHECK(webkit_context_.get());
505 return webkit_context_.get(); 505 return webkit_context_.get();
506 } 506 }
507 507
508 virtual history::TopSites* GetTopSitesWithoutCreating() { 508 virtual history::TopSites* GetTopSitesWithoutCreating() {
509 return NULL; 509 return NULL;
510 } 510 }
511 511
512 virtual history::TopSites* GetTopSites() { 512 virtual history::TopSites* GetTopSites() {
513 return NULL; 513 return NULL;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 654
655 // The file_system context for this profile. 655 // The file_system context for this profile.
656 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_; 656 scoped_refptr<BrowserFileSystemContext> browser_file_system_context_;
657 657
658 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 658 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
659 }; 659 };
660 660
661 Profile* Profile::CreateOffTheRecordProfile() { 661 Profile* Profile::CreateOffTheRecordProfile() {
662 return new OffTheRecordProfileImpl(this); 662 return new OffTheRecordProfileImpl(this);
663 } 663 }
OLDNEW
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_context_unittest.cc ('k') | chrome/browser/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698