diff options
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/render_view_context_menu.cc | 2 | ||||
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 4 | ||||
-rw-r--r-- | chrome/browser/tab_contents/web_contents_unittest.cc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu.cc b/chrome/browser/tab_contents/render_view_context_menu.cc index 8c5e862..bde8749 100644 --- a/chrome/browser/tab_contents/render_view_context_menu.cc +++ b/chrome/browser/tab_contents/render_view_context_menu.cc @@ -239,7 +239,7 @@ bool RenderViewContextMenu::IsItemCommandEnabled(int id) const { // in a new tab as they should. Disabling this context menu option for // now, as a quick hack, before we resolve this issue (Issue = 2608). // TODO (sidchat): Enable this option once this issue is resolved. - if (params_.image_url.scheme() == "chrome-ui") + if (params_.image_url.scheme() == chrome::kChromeUIScheme) return false; return true; diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 38c6d19..d673f43 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -1919,8 +1919,8 @@ void TabContents::RequestOpenURL(const GURL& url, const GURL& referrer, // generated suggestions). // // Note also that we hide the referrer for DOM UI pages. We don't really - // want web sites to see a referrer of "chrome-ui://blah" (and some - // chrome-ui URLs might have search terms or other stuff we don't want to + // want web sites to see a referrer of "chrome://blah" (and some + // chrome: URLs might have search terms or other stuff we don't want to // send to the site), so we send no referrer. OpenURL(url, GURL(), disposition, render_manager_.dom_ui()->link_transition_type()); diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc index a2fd641..e9367e6 100644 --- a/chrome/browser/tab_contents/web_contents_unittest.cc +++ b/chrome/browser/tab_contents/web_contents_unittest.cc @@ -214,7 +214,7 @@ TEST_F(TabContentsTest, UpdateTitle) { // Test view source mode for the new tabs page. TEST_F(TabContentsTest, NTPViewSource) { - const char kUrl[] = "view-source:chrome-ui://newtab/"; + const char kUrl[] = "view-source:chrome://newtab/"; const GURL kGURL(kUrl); process()->sink().ClearMessages(); |