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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 8233040: SpellCheck refactoring: Moved user custom dictionary for spell check to SpellCheckProfile. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed Created 9 years, 2 months 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() { 1752 chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() {
1753 return predictor_; 1753 return predictor_;
1754 } 1754 }
1755 1755
1756 void ProfileImpl::ClearNetworkingHistorySince(base::Time time) { 1756 void ProfileImpl::ClearNetworkingHistorySince(base::Time time) {
1757 io_data_.ClearNetworkingHistorySince(time); 1757 io_data_.ClearNetworkingHistorySince(time);
1758 } 1758 }
1759 1759
1760 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1760 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1761 if (!spellcheck_profile_.get()) 1761 if (!spellcheck_profile_.get())
1762 spellcheck_profile_.reset(new SpellCheckProfile()); 1762 spellcheck_profile_ = new SpellCheckProfile();
Miranda Callahan 2011/10/12 14:33:05 scoped_ptr still uses the .reset function.
shinyak (Google) 2011/10/13 07:51:22 I've changed SpellCheckProfile ref-counted object
Hironori Bono 2011/10/13 09:29:59 Is it possible to describe more details about why
Miranda Callahan 2011/10/13 14:33:12 My apologies, you're right, of course -- I don't k
1763 return spellcheck_profile_.get(); 1763 return spellcheck_profile_.get();
1764 } 1764 }
1765 1765
1766 void ProfileImpl::SetDownloadManagerDelegate( 1766 void ProfileImpl::SetDownloadManagerDelegate(
1767 ChromeDownloadManagerDelegate* delegate) { 1767 ChromeDownloadManagerDelegate* delegate) {
1768 download_manager_delegate_ = delegate; 1768 download_manager_delegate_ = delegate;
1769 } 1769 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698