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

Unified Diff: chrome/browser/chromeos/login/ui/webui_login_view.h

Issue 2550263002: cros: Ensure task manager shows correct title for lock screen webview (Closed)
Patch Set: Rebase Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/ui/webui_login_view.h
diff --git a/chrome/browser/chromeos/login/ui/webui_login_view.h b/chrome/browser/chromeos/login/ui/webui_login_view.h
index 64e7c2843eb0a3b159a69db879f57878a0dafa0c..c3f3bb2b21dd1a7f7eae683cb1b40ad29d404e14 100644
--- a/chrome/browser/chromeos/login/ui/webui_login_view.h
+++ b/chrome/browser/chromeos/login/ui/webui_login_view.h
@@ -47,6 +47,10 @@ class WebUILoginView : public views::View,
struct WebViewSettings {
// URL of the WebView to preload and reuse across WebUILoginView instances.
GURL preloaded_url;
+
+ // Title of the web contents. This will be shown in the task manager. If
+ // empty, the default webview title will be used.
+ base::string16 web_view_title;
};
// Internal class name.
@@ -111,7 +115,8 @@ class WebUILoginView : public views::View,
}
protected:
- static void InitializeWebView(views::WebView* web_view);
+ static void InitializeWebView(views::WebView* web_view,
+ const base::string16& title);
// Overridden from views::View:
void Layout() override;
« no previous file with comments | « chrome/browser/chromeos/login/ui/web_contents_forced_title.cc ('k') | chrome/browser/chromeos/login/ui/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698