| 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/extension_special_storage_policy.h" | 5 #include "chrome/browser/extensions/extension_special_storage_policy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 return extensions_.Remove(extension->id()); | 354 return extensions_.Remove(extension->id()); |
| 355 } | 355 } |
| 356 | 356 |
| 357 void ExtensionSpecialStoragePolicy::SpecialCollection::Clear() { | 357 void ExtensionSpecialStoragePolicy::SpecialCollection::Clear() { |
| 358 ClearCache(); | 358 ClearCache(); |
| 359 extensions_.Clear(); | 359 extensions_.Clear(); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void ExtensionSpecialStoragePolicy::SpecialCollection::ClearCache() { | 362 void ExtensionSpecialStoragePolicy::SpecialCollection::ClearCache() { |
| 363 STLDeleteValues(&cached_results_); | 363 STLDeleteValues(&cached_results_); |
| 364 cached_results_.clear(); | |
| 365 } | 364 } |
| OLD | NEW |