Index: components/bookmarks/browser/bookmark_node_data_views.cc |
diff --git a/components/bookmarks/browser/bookmark_node_data_views.cc b/components/bookmarks/browser/bookmark_node_data_views.cc |
index 888ffccbb8a1d898142f654eefa8f98e39cc319b..136d80efe2927c6d7db3949c551c7e3e6a4e551e 100644 |
--- a/components/bookmarks/browser/bookmark_node_data_views.cc |
+++ b/components/bookmarks/browser/bookmark_node_data_views.cc |
@@ -34,7 +34,7 @@ void BookmarkNodeData::Write(const base::FilePath& profile_path, |
// If there is only one element and it is a URL, write the URL to the |
// clipboard. |
- if (elements.size() == 1 && elements[0].is_url) { |
+ if (has_single_url()) { |
if (elements[0].url.SchemeIs(kJavaScriptScheme)) { |
data->SetString(base::UTF8ToUTF16(elements[0].url.spec())); |
} else { |