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

Side by Side Diff: chrome/browser/extensions/display_info_provider_impl.cc

Issue 476103002: Make DisplayInfoProvider an interface (Closed) Base URL: git@github.com:tmpsantos/chromium.git@display_info
Patch Set: Fixed GN and Windows build Created 6 years, 4 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/display_info_provider_impl.h"
6
7 namespace extensions {
8
9 namespace {
10
11 DisplayInfoProvider* g_display_info_provider = NULL;
12
13 } // namespace
14
15 // static
16 DisplayInfoProvider* DisplayInfoProvider::Get() {
17 if (g_display_info_provider == NULL)
18 g_display_info_provider = new DisplayInfoProviderImpl();
19 return g_display_info_provider;
20 }
21
22 // static
23 void DisplayInfoProvider::InitializeForTesting(
24 DisplayInfoProvider* display_info_provider) {
25 DCHECK(display_info_provider);
26 g_display_info_provider = display_info_provider;
27 }
28
29 DisplayInfoProviderImpl::DisplayInfoProviderImpl() {}
30
31 DisplayInfoProviderImpl::~DisplayInfoProviderImpl() {}
32
33 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698