| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/common/extensions/update_manifest.h" | 5 #include "chrome/common/extensions/update_manifest.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" |
| 9 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "base/string_number_conversions.h" | 12 #include "base/string_number_conversions.h" |
| 12 #include "base/version.h" | 13 #include "base/version.h" |
| 13 #include "chrome/common/libxml_utils.h" | 14 #include "chrome/common/libxml_utils.h" |
| 14 #include "libxml/tree.h" | 15 #include "libxml/tree.h" |
| 15 | 16 |
| 16 static const char* kExpectedGupdateProtocol = "2.0"; | 17 static const char* kExpectedGupdateProtocol = "2.0"; |
| 17 static const char* kExpectedGupdateXmlns = | 18 static const char* kExpectedGupdateXmlns = |
| 18 "http://www.google.com/update2/response"; | 19 "http://www.google.com/update2/response"; |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 std::string error; | 250 std::string error; |
| 250 if (!ParseSingleAppTag(apps[i], gupdate_ns, ¤t, &error)) { | 251 if (!ParseSingleAppTag(apps[i], gupdate_ns, ¤t, &error)) { |
| 251 ParseError("%s", error.c_str()); | 252 ParseError("%s", error.c_str()); |
| 252 } else { | 253 } else { |
| 253 results_.list.push_back(current); | 254 results_.list.push_back(current); |
| 254 } | 255 } |
| 255 } | 256 } |
| 256 | 257 |
| 257 return true; | 258 return true; |
| 258 } | 259 } |
| OLD | NEW |