| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/verified_contents.h" | 5 #include "extensions/browser/verified_contents.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "components/crx_file/id_util.h" | 12 #include "components/crx_file/id_util.h" |
| 13 #include "crypto/signature_verifier.h" | 13 #include "crypto/signature_verifier.h" |
| 14 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 15 | 15 |
| 16 using base::DictionaryValue; | 16 using base::DictionaryValue; |
| 17 using base::ListValue; | 17 using base::ListValue; |
| 18 using base::Value; | 18 using base::Value; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 reinterpret_cast<const uint8*>(payload.data()), payload.size()); | 336 reinterpret_cast<const uint8*>(payload.data()), payload.size()); |
| 337 | 337 |
| 338 if (!signature_verifier.VerifyFinal()) { | 338 if (!signature_verifier.VerifyFinal()) { |
| 339 VLOG(1) << "Could not verify signature - VerifyFinal failure"; | 339 VLOG(1) << "Could not verify signature - VerifyFinal failure"; |
| 340 return false; | 340 return false; |
| 341 } | 341 } |
| 342 return true; | 342 return true; |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace extensions | 345 } // namespace extensions |
| OLD | NEW |