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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_api.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (Closed)
Patch Set: Created 3 years, 8 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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698