| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/login/merge_session_throttle.h" | 5 #include "chrome/browser/chromeos/login/merge_session_throttle.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 bool MergeSessionThrottle::ShouldShowMergeSessionPage(const GURL& url) const { | 95 bool MergeSessionThrottle::ShouldShowMergeSessionPage(const GURL& url) const { |
| 96 // If we are loading google properties while merge session is in progress, | 96 // If we are loading google properties while merge session is in progress, |
| 97 // we will show delayed loading page instead. | 97 // we will show delayed loading page instead. |
| 98 return !net::NetworkChangeNotifier::IsOffline() && | 98 return !net::NetworkChangeNotifier::IsOffline() && |
| 99 google_util::IsGoogleHostname(url.host(), | 99 google_util::IsGoogleHostname(url.host(), |
| 100 google_util::ALLOW_SUBDOMAIN) && | 100 google_util::ALLOW_SUBDOMAIN) && |
| 101 chromeos::UserManager::Get()->GetMergeSessionState() == | 101 chromeos::UserManager::Get()->GetMergeSessionState() == |
| 102 chromeos::UserManager::MERGE_STATUS_IN_PROCESS; | 102 chromeos::UserManager::MERGE_STATUS_IN_PROCESS; |
| 103 } | 103 } |
| OLD | NEW |