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

Unified Diff: chrome/browser/ui/views/ash/extension_utils.cc

Issue 10832195: extension_utils: Remove old files and update DEPS whitelist. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/ui/views/ash/extension_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/extension_utils.cc
diff --git a/chrome/browser/ui/views/ash/extension_utils.cc b/chrome/browser/ui/views/ash/extension_utils.cc
deleted file mode 100644
index aa81a83f3a7914d64d0e27f0a46c07ff3b351528..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/ash/extension_utils.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012 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 "chrome/browser/ui/views/ash/extension_utils.h"
-
-#include "chrome/browser/event_disposition.h"
-#include "chrome/browser/extensions/extension_prefs.h"
-#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/extensions/application_launch.h"
-#include "chrome/common/extensions/extension.h"
-#include "googleurl/src/gurl.h"
-
-namespace extension_utils {
-
-// Opens an extension. |event_flags| holds the flags of the event
-// which invokes this extension.
-void OpenExtension(Profile* profile,
- const extensions::Extension* extension,
- int event_flags) {
- DCHECK(profile);
- DCHECK(extension);
-
- WindowOpenDisposition disposition =
- chrome::DispositionFromEventFlags(event_flags);
- extension_misc::LaunchContainer container;
-
- if (disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB) {
- container = extension_misc::LAUNCH_TAB;
- } else if (disposition == NEW_WINDOW) {
- container = extension_misc::LAUNCH_WINDOW;
- } else {
- // Look at preference to find the right launch container. If no preference
- // is set, launch as a regular tab.
- container =
- profile->GetExtensionService()->extension_prefs()->GetLaunchContainer(
- extension, extensions::ExtensionPrefs::LAUNCH_DEFAULT);
- disposition = NEW_FOREGROUND_TAB;
- }
-
- application_launch::OpenApplication(application_launch::LaunchParams(
- profile, extension, container, disposition));
-}
-
-} // namespace extension_utils
« no previous file with comments | « chrome/browser/ui/views/ash/extension_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698