| Index: chrome/browser/safe_browsing/safe_browsing_service.cc
|
| ===================================================================
|
| --- chrome/browser/safe_browsing/safe_browsing_service.cc (revision 10345)
|
| +++ chrome/browser/safe_browsing/safe_browsing_service.cc (working copy)
|
| @@ -25,6 +25,7 @@
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/pref_service.h"
|
| +#include "chrome/common/url_constants.h"
|
| #include "net/base/registry_controlled_domain.h"
|
|
|
| using base::Time;
|
| @@ -170,7 +171,8 @@
|
| }
|
|
|
| bool SafeBrowsingService::CanCheckUrl(const GURL& url) const {
|
| - return url.SchemeIs("http") || url.SchemeIs("https");
|
| + return url.SchemeIs(chrome::kHttpScheme) ||
|
| + url.SchemeIs(chrome::kHttpsScheme);
|
| }
|
|
|
| bool SafeBrowsingService::CheckUrl(const GURL& url, Client* client) {
|
|
|