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
3 // found in the LICENSE file.
5 #include "chrome/browser/policy/policy_helpers.h"
9 #if !defined(OS_CHROMEOS)
10 #include "chrome/browser/signin/signin_manager.h"
11 #include "google_apis/gaia/gaia_urls.h"
16 bool SkipBlacklistForURL(const GURL
& url
) {
17 #if defined(OS_CHROMEOS)
20 static const char kServiceLoginAuth
[] = "/ServiceLoginAuth";
22 // Whitelist all the signin flow URLs flagged by the SigninManager.
23 if (SigninManager::IsWebBasedSigninFlowURL(url
))
26 // Additionally whitelist /ServiceLoginAuth.
27 if (url
.GetOrigin() != GaiaUrls::GetInstance()->gaia_url().GetOrigin())
30 return url
.path() == kServiceLoginAuth
;