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

Unified Diff: chrome/browser/extensions/api/audio/audio_api.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/audio/audio_api.cc
diff --git a/chrome/browser/extensions/api/audio/audio_api.cc b/chrome/browser/extensions/api/audio/audio_api.cc
index ba4c058cd4d35c3b0e3a7e79ad616fab12b7dbe0..ce252e6f7144786b0e2a4654f1c2e9ed09fbbaa1 100644
--- a/chrome/browser/extensions/api/audio/audio_api.cc
+++ b/chrome/browser/extensions/api/audio/audio_api.cc
@@ -15,11 +15,11 @@ namespace extensions {
namespace audio = api::audio;
-static base::LazyInstance<ProfileKeyedAPIFactory<AudioAPI> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<AudioAPI> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<AudioAPI>* AudioAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -51,7 +51,7 @@ void AudioAPI::OnDeviceChanged() {
bool AudioGetInfoFunction::RunImpl() {
AudioService* service =
- AudioAPI::GetFactoryInstance()->GetForProfile(GetProfile())->GetService();
+ AudioAPI::GetFactoryInstance()->Get(GetProfile())->GetService();
DCHECK(service);
service->StartGetInfo(base::Bind(&AudioGetInfoFunction::OnGetInfoCompleted,
this));
@@ -74,7 +74,7 @@ bool AudioSetActiveDevicesFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(params.get());
AudioService* service =
- AudioAPI::GetFactoryInstance()->GetForProfile(GetProfile())->GetService();
+ AudioAPI::GetFactoryInstance()->Get(GetProfile())->GetService();
DCHECK(service);
service->SetActiveDevices(params->ids);
@@ -87,7 +87,7 @@ bool AudioSetPropertiesFunction::RunImpl() {
EXTENSION_FUNCTION_VALIDATE(params.get());
AudioService* service =
- AudioAPI::GetFactoryInstance()->GetForProfile(GetProfile())->GetService();
+ AudioAPI::GetFactoryInstance()->Get(GetProfile())->GetService();
DCHECK(service);
int volume_value = params->properties.volume.get() ?
« no previous file with comments | « chrome/browser/extensions/api/audio/audio_api.h ('k') | chrome/browser/extensions/api/autotest_private/autotest_private_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698