| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/resource_cache.h" | 5 #include "chrome/browser/policy/cloud/resource_cache.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
| 15 #include "third_party/leveldatabase/src/include/leveldb/db.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/db.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 size = reinterpret_cast<const size_t*>(path.data() + offset - sizeof(size_t)); | 179 size = reinterpret_cast<const size_t*>(path.data() + offset - sizeof(size_t)); |
| 180 if (*size != path.size() - offset) { | 180 if (*size != path.size() - offset) { |
| 181 NOTREACHED(); | 181 NOTREACHED(); |
| 182 return EmptyString(); | 182 return EmptyString(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 return path.substr(offset, *size); | 185 return path.substr(offset, *size); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace policy | 188 } // namespace policy |
| OLD | NEW |