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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_controller.cc

Issue 31008: Coalesce more hardcoded schemes to using predefined constants. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/tab_contents/site_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/render_view_context_menu_controller.cc
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_controller.cc (revision 10346)
+++ chrome/browser/tab_contents/render_view_context_menu_controller.cc (working copy)
@@ -78,7 +78,7 @@
}
void RenderViewContextMenuController::WriteURLToClipboard(const GURL& url) {
- if (url.SchemeIs("mailto"))
+ if (url.SchemeIs(chrome::kMailToScheme))
WriteTextToClipboard(UTF8ToWide(url.path()));
else
WriteTextToClipboard(UTF8ToWide(url.spec()));
@@ -99,7 +99,7 @@
}
case IDS_CONTENT_CONTEXT_COPYLINKLOCATION:
- if (params_.link_url.SchemeIs("mailto"))
+ if (params_.link_url.SchemeIs(chrome::kMailToScheme))
return l10n_util::GetString(IDS_CONTENT_CONTEXT_COPYEMAILADDRESS);
default:
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/tab_contents/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698