| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extension_app_item.h" | 5 #include "chrome/browser/ui/app_list/extension_app_item.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/prefs/pref_service.h" | |
| 11 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 12 #include "chrome/browser/extensions/extension_util.h" | 11 #include "chrome/browser/extensions/extension_util.h" |
| 13 #include "chrome/browser/extensions/launch_util.h" | 12 #include "chrome/browser/extensions/launch_util.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/app_list/app_context_menu.h" | 14 #include "chrome/browser/ui/app_list/app_context_menu.h" |
| 16 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 15 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 17 #include "chrome/browser/ui/extensions/extension_enable_flow.h" | 16 #include "chrome/browser/ui/extensions/extension_enable_flow.h" |
| 18 #include "chrome/common/extensions/extension_constants.h" | 17 #include "chrome/common/extensions/extension_constants.h" |
| 19 #include "chrome/common/extensions/extension_metrics.h" | 18 #include "chrome/common/extensions/extension_metrics.h" |
| 19 #include "components/prefs/pref_service.h" |
| 20 #include "content/public/browser/user_metrics.h" | 20 #include "content/public/browser/user_metrics.h" |
| 21 #include "extensions/browser/app_sorting.h" | 21 #include "extensions/browser/app_sorting.h" |
| 22 #include "extensions/browser/extension_prefs.h" | 22 #include "extensions/browser/extension_prefs.h" |
| 23 #include "extensions/browser/extension_registry.h" | 23 #include "extensions/browser/extension_registry.h" |
| 24 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
| 25 #include "extensions/common/extension_icon_set.h" | 25 #include "extensions/common/extension_icon_set.h" |
| 26 #include "extensions/common/manifest_handlers/icons_handler.h" | 26 #include "extensions/common/manifest_handlers/icons_handler.h" |
| 27 #include "extensions/common/manifest_url_handlers.h" | 27 #include "extensions/common/manifest_url_handlers.h" |
| 28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
| 29 #include "sync/api/string_ordinal.h" | 29 #include "sync/api/string_ordinal.h" |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 } | 335 } |
| 336 | 336 |
| 337 void ExtensionAppItem::UpdatePositionFromOrdering() { | 337 void ExtensionAppItem::UpdatePositionFromOrdering() { |
| 338 const syncer::StringOrdinal& page = | 338 const syncer::StringOrdinal& page = |
| 339 GetAppSorting()->GetPageOrdinal(extension_id()); | 339 GetAppSorting()->GetPageOrdinal(extension_id()); |
| 340 const syncer::StringOrdinal& launch = | 340 const syncer::StringOrdinal& launch = |
| 341 GetAppSorting()->GetAppLaunchOrdinal(extension_id()); | 341 GetAppSorting()->GetAppLaunchOrdinal(extension_id()); |
| 342 set_position(syncer::StringOrdinal( | 342 set_position(syncer::StringOrdinal( |
| 343 page.ToInternalValue() + launch.ToInternalValue())); | 343 page.ToInternalValue() + launch.ToInternalValue())); |
| 344 } | 344 } |
| OLD | NEW |