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/api/downloads/downloads_api.h" | 5 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/file_util.h" | |
15 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/stl_util.h" | 21 #include "base/stl_util.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/strings/string_split.h" | 23 #include "base/strings/string_split.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1931 const Extension* extension, | 1931 const Extension* extension, |
1932 UnloadedExtensionInfo::Reason reason) { | 1932 UnloadedExtensionInfo::Reason reason) { |
1933 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1933 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1934 std::set<const Extension*>::iterator iter = | 1934 std::set<const Extension*>::iterator iter = |
1935 shelf_disabling_extensions_.find(extension); | 1935 shelf_disabling_extensions_.find(extension); |
1936 if (iter != shelf_disabling_extensions_.end()) | 1936 if (iter != shelf_disabling_extensions_.end()) |
1937 shelf_disabling_extensions_.erase(iter); | 1937 shelf_disabling_extensions_.erase(iter); |
1938 } | 1938 } |
1939 | 1939 |
1940 } // namespace extensions | 1940 } // namespace extensions |
OLD | NEW |