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

Unified Diff: trunk/src/chrome/browser/ui/views/accelerator_utils_views.cc

Issue 14096026: Revert 194594 "Make sure manifest specified shortcut for Extensi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 8 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
Index: trunk/src/chrome/browser/ui/views/accelerator_utils_views.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/accelerator_utils_views.cc (revision 194596)
+++ trunk/src/chrome/browser/ui/views/accelerator_utils_views.cc (working copy)
@@ -1,23 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/base/accelerators/accelerator.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_finder.h"
-#include "chrome/browser/ui/views/frame/browser_view.h"
-
-namespace chrome {
-
-bool IsChromeAccelerator(const ui::Accelerator& accelerator, Profile* profile) {
- Browser* browser = chrome::FindLastActiveWithProfile(
- profile, chrome::HOST_DESKTOP_TYPE_NATIVE);
- if (!browser)
- return false;
- BrowserView* browser_view = BrowserView::GetBrowserViewForNativeWindow(
- browser->window()->GetNativeWindow());
- return browser_view->IsAcceleratorRegistered(accelerator);
-}
-
-} // namespace chrome
« no previous file with comments | « trunk/src/chrome/browser/ui/views/accelerator_utils_aura.cc ('k') | trunk/src/chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698