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/content_settings/content_settings_api.h" | 5 #include "chrome/browser/extensions/api/content_settings/content_settings_api.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 continue; | 300 continue; |
301 | 301 |
302 group_identifiers.insert(group_identifier); | 302 group_identifiers.insert(group_identifier); |
303 std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); | 303 std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue()); |
304 dict->SetString(keys::kIdKey, group_identifier); | 304 dict->SetString(keys::kIdKey, group_identifier); |
305 dict->SetString(keys::kDescriptionKey, plugin_metadata->name()); | 305 dict->SetString(keys::kDescriptionKey, plugin_metadata->name()); |
306 list->Append(std::move(dict)); | 306 list->Append(std::move(dict)); |
307 } | 307 } |
308 SetResult(std::move(list)); | 308 SetResult(std::move(list)); |
309 BrowserThread::PostTask( | 309 BrowserThread::PostTask( |
310 BrowserThread::UI, FROM_HERE, base::Bind( | 310 BrowserThread::UI, FROM_HERE, |
| 311 base::BindOnce( |
311 &ContentSettingsContentSettingGetResourceIdentifiersFunction:: | 312 &ContentSettingsContentSettingGetResourceIdentifiersFunction:: |
312 SendResponse, | 313 SendResponse, |
313 this, | 314 this, true)); |
314 true)); | |
315 } | 315 } |
316 | 316 |
317 } // namespace extensions | 317 } // namespace extensions |
OLD | NEW |