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

Side by Side Diff: chrome/browser/profile.cc

Issue 397017: reland 31875. Revert was:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | « build/common.gypi ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/theme_provider.h" 7 #include "app/theme_provider.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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 WideToASCII(prefs->GetString(prefs::kSpellCheckDictionary)), 1334 WideToASCII(prefs->GetString(prefs::kSpellCheckDictionary)),
1335 GetRequestContext()); 1335 GetRequestContext());
1336 spellcheck_host_->Initialize(); 1336 spellcheck_host_->Initialize();
1337 } else if (notify) { 1337 } else if (notify) {
1338 // The spellchecker has been disabled. 1338 // The spellchecker has been disabled.
1339 SpellCheckHostInitialized(); 1339 SpellCheckHostInitialized();
1340 } 1340 }
1341 } 1341 }
1342 1342
1343 void ProfileImpl::SpellCheckHostInitialized() { 1343 void ProfileImpl::SpellCheckHostInitialized() {
1344 spellcheck_host_ready_ = 1344 spellcheck_host_ready_ = spellcheck_host_ &&
1345 spellcheck_host_ && spellcheck_host_->bdict_fd().fd != -1; 1345 spellcheck_host_->bdict_file() != base::kInvalidPlatformFileValue;
1346 NotificationService::current()->Notify( 1346 NotificationService::current()->Notify(
1347 NotificationType::SPELLCHECK_HOST_REINITIALIZED, 1347 NotificationType::SPELLCHECK_HOST_REINITIALIZED,
1348 Source<Profile>(this), NotificationService::NoDetails()); 1348 Source<Profile>(this), NotificationService::NoDetails());
1349 } 1349 }
1350 #endif 1350 #endif
1351 1351
1352 void ProfileImpl::NotifySpellCheckerChanged() { 1352 void ProfileImpl::NotifySpellCheckerChanged() {
1353 SpellcheckerReinitializedDetails scoped_spellchecker; 1353 SpellcheckerReinitializedDetails scoped_spellchecker;
1354 scoped_spellchecker.spellchecker = spellchecker_; 1354 scoped_spellchecker.spellchecker = spellchecker_;
1355 ChromeThread::PostTask( 1355 ChromeThread::PostTask(
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 } 1446 }
1447 if (!sync_service_.get()) 1447 if (!sync_service_.get())
1448 InitSyncService(); 1448 InitSyncService();
1449 return sync_service_.get(); 1449 return sync_service_.get();
1450 } 1450 }
1451 1451
1452 void ProfileImpl::InitSyncService() { 1452 void ProfileImpl::InitSyncService() {
1453 sync_service_.reset(new ProfileSyncService(this)); 1453 sync_service_.reset(new ProfileSyncService(this));
1454 sync_service_->Initialize(); 1454 sync_service_->Initialize();
1455 } 1455 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698