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

Side by Side Diff: chrome/browser/dom_ui/app_launcher_handler.cc

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/dom_ui/app_launcher_handler.h ('k') | chrome/browser/dom_ui/dom_ui_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/dom_ui/app_launcher_handler.h" 5 #include "chrome/browser/dom_ui/app_launcher_handler.h"
6 6
7 #include "app/animation.h" 7 #include "app/animation.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_split.h" 10 #include "base/string_split.h"
11 #include "base/string_util.h" 11 #include "base/string_util.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/app_launched_animation.h" 14 #include "chrome/browser/app_launched_animation.h"
15 #include "chrome/browser/extensions/default_apps.h" 15 #include "chrome/browser/extensions/default_apps.h"
16 #include "chrome/browser/extensions/extension_prefs.h" 16 #include "chrome/browser/extensions/extension_prefs.h"
17 #include "chrome/browser/extensions/extensions_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/platform_util.h" 18 #include "chrome/browser/platform_util.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/tab_contents/tab_contents.h" 20 #include "chrome/browser/tab_contents/tab_contents.h"
21 #include "chrome/browser/ui/browser.h" 21 #include "chrome/browser/ui/browser.h"
22 #include "chrome/browser/ui/browser_list.h" 22 #include "chrome/browser/ui/browser_list.h"
23 #include "chrome/browser/ui/browser_window.h" 23 #include "chrome/browser/ui/browser_window.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/extensions/extension.h" 25 #include "chrome/common/extensions/extension.h"
26 #include "chrome/common/extensions/extension_constants.h" 26 #include "chrome/common/extensions/extension_constants.h"
27 #include "chrome/common/extensions/extension_icon_set.h" 27 #include "chrome/common/extensions/extension_icon_set.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 std::vector<std::string> params; 66 std::vector<std::string> params;
67 base::SplitString(path, '+', &params); 67 base::SplitString(path, '+', &params);
68 68
69 CHECK(params.size() == 2); 69 CHECK(params.size() == 2);
70 70
71 return params.at(1) == "true"; 71 return params.at(1) == "true";
72 } 72 }
73 73
74 } // namespace 74 } // namespace
75 75
76 AppLauncherHandler::AppLauncherHandler(ExtensionsService* extension_service) 76 AppLauncherHandler::AppLauncherHandler(ExtensionService* extension_service)
77 : extensions_service_(extension_service), 77 : extensions_service_(extension_service),
78 promo_active_(false) { 78 promo_active_(false) {
79 } 79 }
80 80
81 AppLauncherHandler::~AppLauncherHandler() {} 81 AppLauncherHandler::~AppLauncherHandler() {}
82 82
83 // static 83 // static
84 void AppLauncherHandler::CreateAppInfo(const Extension* extension, 84 void AppLauncherHandler::CreateAppInfo(const Extension* extension,
85 ExtensionPrefs* extension_prefs, 85 ExtensionPrefs* extension_prefs,
86 DictionaryValue* value) { 86 DictionaryValue* value) {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // We make this check for the case of minimized windows, unit tests, etc. 396 // We make this check for the case of minimized windows, unit tests, etc.
397 if (platform_util::IsVisible(dom_ui_->tab_contents()->GetNativeView()) && 397 if (platform_util::IsVisible(dom_ui_->tab_contents()->GetNativeView()) &&
398 Animation::ShouldRenderRichAnimation()) { 398 Animation::ShouldRenderRichAnimation()) {
399 #if defined(OS_WIN) 399 #if defined(OS_WIN)
400 AppLaunchedAnimation::Show(extension, rect); 400 AppLaunchedAnimation::Show(extension, rect);
401 #else 401 #else
402 NOTIMPLEMENTED(); 402 NOTIMPLEMENTED();
403 #endif 403 #endif
404 } 404 }
405 } 405 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/app_launcher_handler.h ('k') | chrome/browser/dom_ui/dom_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698