Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/extensions/extension_special_storage_policy.cc

Issue 843643002: Cleanup: Remove some redundant container clear() calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc ('k') | chrome/browser/plugins/plugin_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698