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

Side by Side Diff: chrome/browser/extensions/api/spellcheck/spellcheck_api.cc

Issue 23744004: Move the rest of extension_manifest_constants to top-level extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 7 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/extensions/api/spellcheck/spellcheck_api.h" 5 #include "chrome/browser/extensions/api/spellcheck/spellcheck_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/spellchecker/spellcheck_factory.h" 9 #include "chrome/browser/spellchecker/spellcheck_factory.h"
10 #include "chrome/browser/spellchecker/spellcheck_service.h" 10 #include "chrome/browser/spellchecker/spellcheck_service.h"
11 #include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h" 11 #include "chrome/common/extensions/api/spellcheck/spellcheck_handler.h"
12 #include "chrome/common/extensions/extension_manifest_constants.h"
13 #include "content/public/browser/notification_details.h" 12 #include "content/public/browser/notification_details.h"
14 #include "content/public/browser/notification_source.h" 13 #include "content/public/browser/notification_source.h"
14 #include "extensions/common/manifest_constants.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 namespace errors = extension_manifest_errors; 18 namespace errors = manifest_errors;
19 19
20 namespace { 20 namespace {
21 21
22 SpellcheckDictionaryInfo* GetSpellcheckDictionaryInfo( 22 SpellcheckDictionaryInfo* GetSpellcheckDictionaryInfo(
23 const Extension* extension) { 23 const Extension* extension) {
24 SpellcheckDictionaryInfo *spellcheck_info = 24 SpellcheckDictionaryInfo *spellcheck_info =
25 static_cast<SpellcheckDictionaryInfo*>( 25 static_cast<SpellcheckDictionaryInfo*>(
26 extension->GetManifestData(manifest_keys::kSpellcheck)); 26 extension->GetManifestData(manifest_keys::kSpellcheck));
27 return spellcheck_info; 27 return spellcheck_info;
28 } 28 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 NOTREACHED(); 95 NOTREACHED();
96 } 96 }
97 } 97 }
98 98
99 template <> 99 template <>
100 void ProfileKeyedAPIFactory<SpellcheckAPI>::DeclareFactoryDependencies() { 100 void ProfileKeyedAPIFactory<SpellcheckAPI>::DeclareFactoryDependencies() {
101 DependsOn(SpellcheckServiceFactory::GetInstance()); 101 DependsOn(SpellcheckServiceFactory::GetInstance());
102 } 102 }
103 103
104 } // namespace extensions 104 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698