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

Side by Side Diff: chrome/browser/chromeos/extensions/media_player_api.cc

Issue 140613002: Cleanup: Replace &LazyInstance::Get() with LazyInstance::Pointer(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/chromeos/extensions/media_player_api.h" 5 #include "chrome/browser/chromeos/extensions/media_player_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/chromeos/extensions/media_player_event_router.h" 9 #include "chrome/browser/chromeos/extensions/media_player_event_router.h"
10 10
(...skipping 14 matching lines...) Expand all
25 if (!media_player_event_router_) 25 if (!media_player_event_router_)
26 media_player_event_router_.reset(new MediaPlayerEventRouter(profile_)); 26 media_player_event_router_.reset(new MediaPlayerEventRouter(profile_));
27 return media_player_event_router_.get(); 27 return media_player_event_router_.get();
28 } 28 }
29 29
30 static base::LazyInstance<ProfileKeyedAPIFactory<MediaPlayerAPI> > 30 static base::LazyInstance<ProfileKeyedAPIFactory<MediaPlayerAPI> >
31 g_factory = LAZY_INSTANCE_INITIALIZER; 31 g_factory = LAZY_INSTANCE_INITIALIZER;
32 32
33 // static 33 // static
34 ProfileKeyedAPIFactory<MediaPlayerAPI>* MediaPlayerAPI::GetFactoryInstance() { 34 ProfileKeyedAPIFactory<MediaPlayerAPI>* MediaPlayerAPI::GetFactoryInstance() {
35 return &g_factory.Get(); 35 return g_factory.Pointer();
36 } 36 }
37 37
38 } // namespace extensions 38 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/input_method_api.cc ('k') | chrome/browser/chromeos/extensions/screenlock_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698