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/chromeos/audio/audio_pref_handler_impl.h" | 5 #include "chrome/browser/chromeos/audio/audio_pref_handler_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/prefs/pref_registry_simple.h" | 13 #include "base/prefs/pref_registry_simple.h" |
14 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
15 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 | 17 |
18 using std::max; | 18 using std::max; |
19 using std::min; | 19 using std::min; |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // Default value for the volume pref, as a percent in the range [0.0, 100.0]. | 25 // Default value for the volume pref, as a percent in the range [0.0, 100.0]. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // before we use it. | 100 // before we use it. |
101 registry->RegisterBooleanPref(::prefs::kAudioCaptureAllowed, true); | 101 registry->RegisterBooleanPref(::prefs::kAudioCaptureAllowed, true); |
102 } | 102 } |
103 | 103 |
104 // static | 104 // static |
105 AudioPrefHandler* AudioPrefHandler::Create(PrefService* local_state) { | 105 AudioPrefHandler* AudioPrefHandler::Create(PrefService* local_state) { |
106 return new AudioPrefHandlerImpl(local_state); | 106 return new AudioPrefHandlerImpl(local_state); |
107 } | 107 } |
108 | 108 |
109 } // namespace chromeos | 109 } // namespace chromeos |
OLD | NEW |