Only send _NET_ACTIVE_WINDOW hint if the chromium window is not already active.
[chromium-blink-merge.git] / chromeos / network / network_change_notifier_factory_chromeos.cc
blob1d73c3e34c0795e12f2b99d3564881ea805fe7c3
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
3 // found in the LICENSE file.
5 #include "chromeos/network/network_change_notifier_factory_chromeos.h"
7 #include "chromeos/network/network_change_notifier_chromeos.h"
9 namespace chromeos {
11 namespace {
13 NetworkChangeNotifierChromeos* g_network_change_notifier_chromeos = NULL;
15 } // namespace
17 net::NetworkChangeNotifier*
18 NetworkChangeNotifierFactoryChromeos::CreateInstance() {
19 DCHECK(!g_network_change_notifier_chromeos);
20 g_network_change_notifier_chromeos = new NetworkChangeNotifierChromeos();
21 return g_network_change_notifier_chromeos;
24 // static
25 NetworkChangeNotifierChromeos*
26 NetworkChangeNotifierFactoryChromeos::GetInstance() {
27 return g_network_change_notifier_chromeos;
30 } // namespace chromeos