OLD | NEW |
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 "chrome/browser/extensions/api/audio/audio_api.h" | 5 #include "chrome/browser/extensions/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 "chrome/browser/profiles/profile.h" |
9 #include "chrome/common/extensions/api/audio.h" | 10 #include "chrome/common/extensions/api/audio.h" |
10 #include "extensions/browser/event_router.h" | 11 #include "extensions/browser/event_router.h" |
11 #include "extensions/browser/extension_system.h" | 12 #include "extensions/browser/extension_system.h" |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 namespace audio = api::audio; | 16 namespace audio = api::audio; |
16 | 17 |
17 static base::LazyInstance<ProfileKeyedAPIFactory<AudioAPI> > | 18 static base::LazyInstance<ProfileKeyedAPIFactory<AudioAPI> > |
18 g_factory = LAZY_INSTANCE_INITIALIZER; | 19 g_factory = LAZY_INSTANCE_INITIALIZER; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if (!service->SetDeviceProperties(params->id, | 99 if (!service->SetDeviceProperties(params->id, |
99 params->properties.is_muted, | 100 params->properties.is_muted, |
100 volume_value, | 101 volume_value, |
101 gain_value)) | 102 gain_value)) |
102 return false; | 103 return false; |
103 else | 104 else |
104 return true; | 105 return true; |
105 } | 106 } |
106 | 107 |
107 } // namespace extensions | 108 } // namespace extensions |
OLD | NEW |