| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/webstore_inline_installer.h" | 5 #include "chrome/browser/extensions/webstore_inline_installer.h" |
| 6 | 6 |
| 7 #include "base/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 | 10 |
| 11 using content::WebContents; | 11 using content::WebContents; |
| 12 | 12 |
| 13 namespace extensions { | 13 namespace extensions { |
| 14 | 14 |
| 15 const char kVerifiedSiteKey[] = "verified_site"; | 15 const char kVerifiedSiteKey[] = "verified_site"; |
| 16 const char kVerifiedSitesKey[] = "verified_sites"; | 16 const char kVerifiedSitesKey[] = "verified_sites"; |
| 17 const char kInlineInstallNotSupportedKey[] = "inline_install_not_supported"; | 17 const char kInlineInstallNotSupportedKey[] = "inline_install_not_supported"; |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 DLOG(WARNING) << "Could not parse " << verified_site_pattern_spec << | 207 DLOG(WARNING) << "Could not parse " << verified_site_pattern_spec << |
| 208 " as URL pattern " << parse_result; | 208 " as URL pattern " << parse_result; |
| 209 return false; | 209 return false; |
| 210 } | 210 } |
| 211 verified_site_pattern.SetScheme("*"); | 211 verified_site_pattern.SetScheme("*"); |
| 212 | 212 |
| 213 return verified_site_pattern.MatchesURL(requestor_url); | 213 return verified_site_pattern.MatchesURL(requestor_url); |
| 214 } | 214 } |
| 215 | 215 |
| 216 } // namespace extensions | 216 } // namespace extensions |
| OLD | NEW |