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

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

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 6 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/shell_integration_win.cc ('k') | chrome/browser/ui/browser.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_win.cc
diff --git a/chrome/browser/tab_contents/render_view_context_menu_win.cc b/chrome/browser/tab_contents/render_view_context_menu_win.cc
index 8c16a951e174eaa12cd4a4255108054d272662f3..bff9a82e19e175d30b466353b56928a11688cf2e 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_win.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_win.cc
@@ -32,7 +32,7 @@ RenderViewContextMenuViews* RenderViewContextMenuViews::Create(
bool RenderViewContextMenuWin::IsCommandIdVisible(int command_id) const {
// In windows 8 metro mode no new window option on normal browser windows.
- if (base::win::GetMetroModule() && !profile_->IsOffTheRecord() &&
+ if (base::win::IsMetroProcess() && !profile_->IsOffTheRecord() &&
command_id == IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW) {
return false;
}
@@ -45,7 +45,7 @@ void RenderViewContextMenuWin::ExecuteCommand(int command_id) {
void RenderViewContextMenuWin::ExecuteCommand(int command_id,
int event_flags) {
- if (base::win::GetMetroModule() &&
+ if (base::win::IsMetroProcess() &&
command_id == IDC_CONTENT_CONTEXT_OPENLINKNEWWINDOW) {
// The open link in new window command should only be enabled for
// incognito windows in metro mode.
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698