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

Side by Side Diff: chrome/browser/task_management/providers/web_contents/tab_contents_task.cc

Issue 1254103002: New Task Manager - Phase 1.3.5: Implement Extension Task Providing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Devlin's comments Created 5 years, 4 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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698