| OLD | NEW |
| 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 "chrome/browser/task_management/providers/web_contents/tab_contents_tas
k.h" | 5 #include "chrome/browser/task_management/providers/web_contents/tab_contents_tas
k.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "content/public/browser/web_contents.h" | 9 #include "content/public/browser/web_contents.h" |
| 10 #include "extensions/browser/extension_registry.h" | 10 #include "extensions/browser/extension_registry.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool is_extension = HostsExtension(web_contents()); | 62 bool is_extension = HostsExtension(web_contents()); |
| 63 bool is_incognito = profile->IsOffTheRecord(); | 63 bool is_incognito = profile->IsOffTheRecord(); |
| 64 | 64 |
| 65 base::string16 tab_title = | 65 base::string16 tab_title = |
| 66 RendererTask::GetTitleFromWebContents(web_contents()); | 66 RendererTask::GetTitleFromWebContents(web_contents()); |
| 67 | 67 |
| 68 // Fall back to the URL if the title is empty. | 68 // Fall back to the URL if the title is empty. |
| 69 return PrefixRendererTitle(tab_title.empty() ? url_spec : tab_title, | 69 return PrefixRendererTitle(tab_title.empty() ? url_spec : tab_title, |
| 70 is_app, | 70 is_app, |
| 71 is_extension, | 71 is_extension, |
| 72 is_incognito); | 72 is_incognito, |
| 73 false); // is_background. |
| 73 } | 74 } |
| 74 | 75 |
| 75 } // namespace task_management | 76 } // namespace task_management |
| OLD | NEW |