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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 638253004: Small optimization for <webview> tooltips. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index 45da41a73db7332d8461139454d9c35ad67b1573..9fed4123a706293d76cf6b54cdf25905ba66425c 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -129,6 +129,10 @@ void BrowserPluginGuest::SetFocus(RenderWidgetHost* rwh, bool focused) {
}
void BrowserPluginGuest::SetTooltipText(const base::string16& tooltip_text) {
+ if (tooltip_text == current_tooltip_text_)
+ return;
+ current_tooltip_text_ = tooltip_text;
+
SendMessageToEmbedder(new BrowserPluginMsg_SetTooltipText(
browser_plugin_instance_id_, tooltip_text));
}
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698