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

Side by Side Diff: content/shell/browser/layout_test/layout_test_permission_manager.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/shell/browser/layout_test/layout_test_permission_manager.h" 5 #include "content/shell/browser/layout_test/layout_test_permission_manager.h"
6 6
7 #include <list> 7 #include <list>
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/memory/ptr_util.h"
13 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
14 #include "content/public/browser/permission_type.h" 15 #include "content/public/browser/permission_type.h"
15 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
16 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h " 17 #include "content/shell/browser/layout_test/layout_test_content_browser_client.h "
17 #include "content/shell/browser/layout_test/layout_test_notification_manager.h" 18 #include "content/shell/browser/layout_test/layout_test_notification_manager.h"
18 19
19 namespace content { 20 namespace content {
20 21
21 struct LayoutTestPermissionManager::Subscription { 22 struct LayoutTestPermissionManager::Subscription {
22 PermissionDescription permission; 23 PermissionDescription permission;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Add the callback to |callbacks| which will be run after the loop to 219 // Add the callback to |callbacks| which will be run after the loop to
219 // prevent re-entrance issues. 220 // prevent re-entrance issues.
220 callbacks.push_back(base::Bind(subscription->callback, status)); 221 callbacks.push_back(base::Bind(subscription->callback, status));
221 } 222 }
222 223
223 for (const auto& callback : callbacks) 224 for (const auto& callback : callbacks)
224 callback.Run(); 225 callback.Run();
225 } 226 }
226 227
227 } // namespace content 228 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698