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

Side by Side Diff: chrome/browser/speech/extension_api/tts_extension_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, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 registry->RegisterFunction<TtsIsSpeakingFunction>(); 350 registry->RegisterFunction<TtsIsSpeakingFunction>();
351 registry->RegisterFunction<TtsSpeakFunction>(); 351 registry->RegisterFunction<TtsSpeakFunction>();
352 registry->RegisterFunction<TtsStopSpeakingFunction>(); 352 registry->RegisterFunction<TtsStopSpeakingFunction>();
353 registry->RegisterFunction<TtsPauseFunction>(); 353 registry->RegisterFunction<TtsPauseFunction>();
354 registry->RegisterFunction<TtsResumeFunction>(); 354 registry->RegisterFunction<TtsResumeFunction>();
355 } 355 }
356 356
357 TtsAPI::~TtsAPI() { 357 TtsAPI::~TtsAPI() {
358 } 358 }
359 359
360 static base::LazyInstance<ProfileKeyedAPIFactory<TtsAPI> > 360 static base::LazyInstance<BrowserContextKeyedAPIFactory<TtsAPI> > g_factory =
361 g_factory = LAZY_INSTANCE_INITIALIZER; 361 LAZY_INSTANCE_INITIALIZER;
362 362
363 ProfileKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() { 363 BrowserContextKeyedAPIFactory<TtsAPI>* TtsAPI::GetFactoryInstance() {
364 return g_factory.Pointer(); 364 return g_factory.Pointer();
365 } 365 }
366 366
367 } // namespace extensions 367 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/speech/extension_api/tts_extension_api.h ('k') | chrome/browser/ui/webui/identity_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698