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

Side by Side Diff: chrome/browser/policy/policy_helpers.cc

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_browsertest.cc ('k') | chrome/browser/policy/policy_network_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698