| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/speech/extension_api/tts_extension_api.h" | 5 #include "chrome/browser/speech/extension_api/tts_extension_api.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 registry->RegisterFunction<TtsResumeFunction>(); | 358 registry->RegisterFunction<TtsResumeFunction>(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 TtsAPI::~TtsAPI() { | 361 TtsAPI::~TtsAPI() { |
| 362 } | 362 } |
| 363 | 363 |
| 364 static base::LazyInstance<ProfileKeyedAPIFactory<TtsAPI> > | 364 static base::LazyInstance<ProfileKeyedAPIFactory<TtsAPI> > |
| 365 g_factory = LAZY_INSTANCE_INITIALIZER; | 365 g_factory = LAZY_INSTANCE_INITIALIZER; |
| 366 | 366 |
| 367 ProfileKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { | 367 ProfileKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { |
| 368 return &g_factory.Get(); | 368 return g_factory.Pointer(); |
| 369 } | 369 } |
| 370 | 370 |
| 371 } // namespace extensions | 371 } // namespace extensions |
| OLD | NEW |