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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_registry.cc

Issue 307943004: Adds bluetooth connection type to NetworkChangeNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@netinfo
Patch Set: Removing browser test as it only needs to be tested for initial landing Created 6 years, 6 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
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/dial/dial_registry.h" 5 #include "chrome/browser/extensions/api/dial/dial_registry.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 Clear(); 312 Clear();
313 MaybeSendEvent(); 313 MaybeSendEvent();
314 } 314 }
315 break; 315 break;
316 case NetworkChangeNotifier::CONNECTION_2G: 316 case NetworkChangeNotifier::CONNECTION_2G:
317 case NetworkChangeNotifier::CONNECTION_3G: 317 case NetworkChangeNotifier::CONNECTION_3G:
318 case NetworkChangeNotifier::CONNECTION_4G: 318 case NetworkChangeNotifier::CONNECTION_4G:
319 case NetworkChangeNotifier::CONNECTION_ETHERNET: 319 case NetworkChangeNotifier::CONNECTION_ETHERNET:
320 case NetworkChangeNotifier::CONNECTION_WIFI: 320 case NetworkChangeNotifier::CONNECTION_WIFI:
321 case NetworkChangeNotifier::CONNECTION_UNKNOWN: 321 case NetworkChangeNotifier::CONNECTION_UNKNOWN:
322 case NetworkChangeNotifier::CONNECTION_BLUETOOTH:
322 if (!dial_.get()) { 323 if (!dial_.get()) {
323 VLOG(2) << "Connection detected, restarting discovery."; 324 VLOG(2) << "Connection detected, restarting discovery.";
324 StartPeriodicDiscovery(); 325 StartPeriodicDiscovery();
325 } 326 }
326 break; 327 break;
327 } 328 }
328 } 329 }
329 330
330 } // namespace extensions 331 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/network_metrics_provider.cc » ('j') | net/base/network_change_notifier.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698