Fix IWYU for BrowserThread::
Missing includes are blocking a bigger upcoming change that
removes browser_thread.h from other places which tend to have a far
reach.
This removal was done by a script which adds browser_thread.h if
the file has "BrowserThread::" on a line which isn't a comment.
If the file is a header it also substracts the include from matching .cc
file if any.
If the file is a .cc it omits the include if it's already in the
matching .h
Minor exceptions :
* files that already included test_browser_thread.h (not doing so
broke DEPS as some tests are explicitly allowed to include
test_browser_thread.h but no content/public)
* chrome/renderer/chrome_content_renderer_client_browsertest.cc
(because it violates DEPS already by using BrowserThread:: from
content/renderer but this CL doesn't aim to fix tricky use cases)
[email protected]
Bug: 815225, 821034
Change-Id: I5274433918c85f26caaa5b99adb990f07222fb99
Reviewed-on: https://chromium-review.googlesource.com/967186
Reviewed-by: Gabriel Charette <[email protected]>
Cr-Commit-Position: refs/heads/master@{#543834}
diff --git a/chrome/browser/lifetime/browser_close_manager_browsertest.cc b/chrome/browser/lifetime/browser_close_manager_browsertest.cc
index 2b7cc0aa..a8c298e 100644
--- a/chrome/browser/lifetime/browser_close_manager_browsertest.cc
+++ b/chrome/browser/lifetime/browser_close_manager_browsertest.cc
@@ -46,6 +46,7 @@
#include "components/sessions/core/tab_restore_service.h"
#include "components/sessions/core/tab_restore_service_observer.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/render_frame_host.h"