| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/policy/policy_helpers.h" | 5 #include "chrome/browser/policy/policy_helpers.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" |
| 7 #include "net/base/net_errors.h" | 8 #include "net/base/net_errors.h" |
| 8 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 9 | 10 |
| 10 #if defined(OS_CHROMEOS) | 11 #if defined(OS_CHROMEOS) |
| 11 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 12 #include "chromeos/chromeos_switches.h" | 13 #include "chromeos/chromeos_switches.h" |
| 13 #endif | 14 #endif |
| 14 | 15 |
| 15 #if !defined(OS_CHROMEOS) && !defined(OS_IOS) | 16 #if !defined(OS_CHROMEOS) && !defined(OS_IOS) |
| 16 #include "google_apis/gaia/gaia_urls.h" | 17 #include "google_apis/gaia/gaia_urls.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 *block = false; | 40 *block = false; |
| 40 // Additionally whitelist /ServiceLoginAuth. | 41 // Additionally whitelist /ServiceLoginAuth. |
| 41 if (url.GetOrigin() != GaiaUrls::GetInstance()->gaia_url().GetOrigin()) | 42 if (url.GetOrigin() != GaiaUrls::GetInstance()->gaia_url().GetOrigin()) |
| 42 return false; | 43 return false; |
| 43 | 44 |
| 44 return url.path() == kServiceLoginAuth; | 45 return url.path() == kServiceLoginAuth; |
| 45 #endif | 46 #endif |
| 46 } | 47 } |
| 47 | 48 |
| 48 } // namespace policy | 49 } // namespace policy |
| OLD | NEW |