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

Side by Side Diff: chrome/browser/ui/app_list/search/app_result.cc

Issue 522683003: Move basic string operations to ui/app_list/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 6 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/app_search_provider.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/ui/app_list/search/app_result.h" 5 #include "chrome/browser/ui/app_list/search/app_result.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_util.h" 9 #include "chrome/browser/extensions/extension_util.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/app_list/app_context_menu.h" 11 #include "chrome/browser/ui/app_list/app_context_menu.h"
12 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 12 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
13 #include "chrome/browser/ui/app_list/search/tokenized_string.h"
14 #include "chrome/browser/ui/app_list/search/tokenized_string_match.h"
15 #include "chrome/browser/ui/extensions/extension_enable_flow.h" 13 #include "chrome/browser/ui/extensions/extension_enable_flow.h"
16 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h" 14 #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
17 #include "content/public/browser/user_metrics.h" 15 #include "content/public/browser/user_metrics.h"
18 #include "extensions/browser/extension_registry.h" 16 #include "extensions/browser/extension_registry.h"
19 #include "extensions/browser/extension_system.h" 17 #include "extensions/browser/extension_system.h"
20 #include "extensions/browser/extension_system_provider.h" 18 #include "extensions/browser/extension_system_provider.h"
21 #include "extensions/browser/extensions_browser_client.h" 19 #include "extensions/browser/extensions_browser_client.h"
22 #include "extensions/common/constants.h" 20 #include "extensions/common/constants.h"
23 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
24 #include "extensions/common/extension_icon_set.h" 22 #include "extensions/common/extension_icon_set.h"
25 #include "extensions/common/manifest_handlers/icons_handler.h" 23 #include "extensions/common/manifest_handlers/icons_handler.h"
26 #include "ui/app_list/app_list_switches.h" 24 #include "ui/app_list/app_list_switches.h"
25 #include "ui/app_list/search/tokenized_string.h"
26 #include "ui/app_list/search/tokenized_string_match.h"
27 #include "ui/gfx/color_utils.h" 27 #include "ui/gfx/color_utils.h"
28 #include "ui/gfx/image/image_skia_operations.h" 28 #include "ui/gfx/image/image_skia_operations.h"
29 29
30 namespace app_list { 30 namespace app_list {
31 31
32 AppResult::AppResult(Profile* profile, 32 AppResult::AppResult(Profile* profile,
33 const std::string& app_id, 33 const std::string& app_id,
34 AppListControllerDelegate* controller) 34 AppListControllerDelegate* controller)
35 : profile_(profile), 35 : profile_(profile),
36 app_id_(app_id), 36 app_id_(app_id),
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 NotifyItemUninstalled(); 215 NotifyItemUninstalled();
216 } 216 }
217 217
218 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) { 218 void AppResult::OnShutdown(extensions::ExtensionRegistry* registry) {
219 DCHECK_EQ(extension_registry_, registry); 219 DCHECK_EQ(extension_registry_, registry);
220 StopObservingExtensionRegistry(); 220 StopObservingExtensionRegistry();
221 } 221 }
222 222
223 } // namespace app_list 223 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/search/app_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698