OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/webui/extensions/extension_error_ui_util.h" | 5 #include "chrome/browser/ui/webui/extensions/extension_error_ui_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/file_util.h" | |
11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/devtools/devtools_window.h" | 17 #include "chrome/browser/devtools/devtools_window.h" |
18 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_finder.h" | 20 #include "chrome/browser/ui/browser_finder.h" |
21 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 21 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 if (!browser || !browser->is_type_tabbed()) | 190 if (!browser || !browser->is_type_tabbed()) |
191 return; | 191 return; |
192 | 192 |
193 TabStripModel* tab_strip = browser->tab_strip_model(); | 193 TabStripModel* tab_strip = browser->tab_strip_model(); |
194 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(web_contents), | 194 tab_strip->ActivateTabAt(tab_strip->GetIndexOfWebContents(web_contents), |
195 false); // Not through direct user gesture. | 195 false); // Not through direct user gesture. |
196 } | 196 } |
197 | 197 |
198 } // namespace error_ui_util | 198 } // namespace error_ui_util |
199 } // namespace extensions | 199 } // namespace extensions |
OLD | NEW |