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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_factory.cc

Issue 507913002: Finish converting chrome_strings target to use qualified paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/spellchecker/spellcheck_factory.h" 5 #include "chrome/browser/spellchecker/spellcheck_factory.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/profiles/incognito_helpers.h" 8 #include "chrome/browser/profiles/incognito_helpers.h"
9 #include "chrome/browser/spellchecker/spellcheck_service.h" 9 #include "chrome/browser/spellchecker/spellcheck_service.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/grit/locale_settings.h"
11 #include "components/keyed_service/content/browser_context_dependency_manager.h" 12 #include "components/keyed_service/content/browser_context_dependency_manager.h"
12 #include "components/pref_registry/pref_registry_syncable.h" 13 #include "components/pref_registry/pref_registry_syncable.h"
13 #include "components/user_prefs/user_prefs.h" 14 #include "components/user_prefs/user_prefs.h"
14 #include "content/public/browser/render_process_host.h" 15 #include "content/public/browser/render_process_host.h"
15 #include "grit/locale_settings.h"
16 16
17 // static 17 // static
18 SpellcheckService* SpellcheckServiceFactory::GetForContext( 18 SpellcheckService* SpellcheckServiceFactory::GetForContext(
19 content::BrowserContext* context) { 19 content::BrowserContext* context) {
20 return static_cast<SpellcheckService*>( 20 return static_cast<SpellcheckService*>(
21 GetInstance()->GetServiceForBrowserContext(context, true)); 21 GetInstance()->GetServiceForBrowserContext(context, true));
22 } 22 }
23 23
24 // static 24 // static
25 SpellcheckService* SpellcheckServiceFactory::GetForRenderProcessId( 25 SpellcheckService* SpellcheckServiceFactory::GetForRenderProcessId(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 86 }
87 87
88 content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse( 88 content::BrowserContext* SpellcheckServiceFactory::GetBrowserContextToUse(
89 content::BrowserContext* context) const { 89 content::BrowserContext* context) const {
90 return chrome::GetBrowserContextRedirectedInIncognito(context); 90 return chrome::GetBrowserContextRedirectedInIncognito(context);
91 } 91 }
92 92
93 bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const { 93 bool SpellcheckServiceFactory::ServiceIsNULLWhileTesting() const {
94 return true; 94 return true;
95 } 95 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page.cc ('k') | chrome/browser/sync/sync_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698