OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/input/input.h" | 5 #include "chrome/browser/extensions/api/input/input.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 InputAPI::~InputAPI() { | 147 InputAPI::~InputAPI() { |
148 } | 148 } |
149 | 149 |
150 static base::LazyInstance<ProfileKeyedAPIFactory<InputAPI> > | 150 static base::LazyInstance<ProfileKeyedAPIFactory<InputAPI> > |
151 g_factory = LAZY_INSTANCE_INITIALIZER; | 151 g_factory = LAZY_INSTANCE_INITIALIZER; |
152 | 152 |
153 // static | 153 // static |
154 ProfileKeyedAPIFactory<InputAPI>* InputAPI::GetFactoryInstance() { | 154 ProfileKeyedAPIFactory<InputAPI>* InputAPI::GetFactoryInstance() { |
155 return &g_factory.Get(); | 155 return g_factory.Pointer(); |
156 } | 156 } |
157 | 157 |
158 } // namespace extensions | 158 } // namespace extensions |
OLD | NEW |