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

Side by Side Diff: chrome/browser/captive_portal/captive_portal_service.cc

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/captive_portal/captive_portal_service.h" 5 #include "chrome/browser/captive_portal/captive_portal_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "components/captive_portal/captive_portal_types.h" 16 #include "components/captive_portal/captive_portal_types.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 18
19 #if defined(OS_MACOSX)
20 #include "base/mac/mac_util.h"
21 #endif
22
23 #if defined(OS_WIN) 19 #if defined(OS_WIN)
24 #include "base/win/windows_version.h" 20 #include "base/win/windows_version.h"
25 #endif 21 #endif
26 22
27 using captive_portal::CaptivePortalResult; 23 using captive_portal::CaptivePortalResult;
28 24
29 namespace { 25 namespace {
30 26
31 // Make sure this enum is in sync with CaptivePortalDetectionResult enum 27 // Make sure this enum is in sync with CaptivePortalDetectionResult enum
32 // in histograms.xml. This enum is append-only, don't modify existing values. 28 // in histograms.xml. This enum is append-only, don't modify existing values.
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 return time_ticks_for_testing_; 386 return time_ticks_for_testing_;
391 } 387 }
392 388
393 bool CaptivePortalService::DetectionInProgress() const { 389 bool CaptivePortalService::DetectionInProgress() const {
394 return state_ == STATE_CHECKING_FOR_PORTAL; 390 return state_ == STATE_CHECKING_FOR_PORTAL;
395 } 391 }
396 392
397 bool CaptivePortalService::TimerRunning() const { 393 bool CaptivePortalService::TimerRunning() const {
398 return check_captive_portal_timer_.IsRunning(); 394 return check_captive_portal_timer_.IsRunning();
399 } 395 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/browser/extensions/api/cast_streaming/performance_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698