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

Side by Side Diff: extensions/browser/api/audio/audio_api.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "extensions/browser/api/audio/audio_api.h" 5 #include "extensions/browser/api/audio/audio_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "extensions/browser/event_router.h" 9 #include "extensions/browser/event_router.h"
10 #include "extensions/common/api/audio.h" 10 #include "extensions/common/api/audio.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 namespace audio = core_api::audio; 14 namespace audio = api::audio;
15 15
16 static base::LazyInstance<BrowserContextKeyedAPIFactory<AudioAPI> > g_factory = 16 static base::LazyInstance<BrowserContextKeyedAPIFactory<AudioAPI> > g_factory =
17 LAZY_INSTANCE_INITIALIZER; 17 LAZY_INSTANCE_INITIALIZER;
18 18
19 // static 19 // static
20 BrowserContextKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() { 20 BrowserContextKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() {
21 return g_factory.Pointer(); 21 return g_factory.Pointer();
22 } 22 }
23 23
24 AudioAPI::AudioAPI(content::BrowserContext* context) 24 AudioAPI::AudioAPI(content::BrowserContext* context)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 volume_value, 134 volume_value,
135 gain_value)) 135 gain_value))
136 return false; 136 return false;
137 else 137 else
138 return true; 138 return true;
139 } 139 }
140 140
141 /////////////////////////////////////////////////////////////////////////////// 141 ///////////////////////////////////////////////////////////////////////////////
142 142
143 } // namespace extensions 143 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/api/app_window/app_window_api.cc ('k') | extensions/browser/api/audio/audio_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698