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

Unified Diff: content/renderer/render_view_impl.cc

Issue 10958008: content: Use empty() to see if name is not empty. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 635465b7c685194a3fd036cad8c3f55b9c2ccd92..48d5fe17fdd90ed556a8f99a4f9575c9b8929b45 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -3812,7 +3812,7 @@ void RenderViewImpl::CreateFrameTree(WebKit::WebFrame* frame,
string16 name;
if (frame_tree->GetString(content::kFrameTreeNodeNameKey, &name) &&
- name != string16()) {
+ !name.empty()) {
frame->setName(name);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698