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/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 Loading... |
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 Loading... |
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 } |
OLD | NEW |