| 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/extensions/api/system_info_display/display_info_provide
r.h" | 5 #include "chrome/browser/extensions/api/system_info_display/display_info_provide
r.h" |
| 6 | 6 |
| 7 namespace extensions { | 7 namespace extensions { |
| 8 | 8 |
| 9 // Static member intialization. |
| 10 template<> |
| 11 base::LazyInstance<scoped_refptr<SystemInfoProvider<DisplayInfo> > > |
| 12 SystemInfoProvider<DisplayInfo>::provider_ = LAZY_INSTANCE_INITIALIZER; |
| 13 |
| 14 const DisplayInfo& DisplayInfoProvider::display_info() const { |
| 15 return info_; |
| 16 } |
| 17 |
| 9 // static | 18 // static |
| 10 DisplayInfoProvider* DisplayInfoProvider::GetProvider() { | 19 DisplayInfoProvider* DisplayInfoProvider::GetProvider() { |
| 11 return DisplayInfoProvider::GetInstance<DisplayInfoProvider>(); | 20 return DisplayInfoProvider::GetInstance<DisplayInfoProvider>(); |
| 12 } | 21 } |
| 13 | 22 |
| 14 } // namespace extensions | 23 } // namespace extensions |
| 15 | 24 |
| OLD | NEW |