| OLD | NEW |
| 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/ash/launcher/chrome_launcher_controller.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
| 6 | 6 |
| 7 #include "ash/multi_profile_uma.h" | 7 #include "ash/multi_profile_uma.h" |
| 8 #include "ash/public/cpp/remote_shelf_item_delegate.h" | 8 #include "ash/public/cpp/remote_shelf_item_delegate.h" |
| 9 #include "ash/public/cpp/shelf_item.h" | 9 #include "ash/public/cpp/shelf_item.h" |
| 10 #include "ash/public/cpp/shelf_model.h" |
| 10 #include "ash/public/interfaces/constants.mojom.h" | 11 #include "ash/public/interfaces/constants.mojom.h" |
| 11 #include "ash/resources/grit/ash_resources.h" | 12 #include "ash/resources/grit/ash_resources.h" |
| 12 #include "ash/shelf/shelf.h" | 13 #include "ash/shelf/shelf.h" |
| 13 #include "ash/shelf/shelf_model.h" | |
| 14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 15 #include "ash/shell_port.h" | 15 #include "ash/shell_port.h" |
| 16 #include "ash/strings/grit/ash_strings.h" | 16 #include "ash/strings/grit/ash_strings.h" |
| 17 #include "ash/system/tray/system_tray_delegate.h" | 17 #include "ash/system/tray/system_tray_delegate.h" |
| 18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/strings/pattern.h" | 19 #include "base/strings/pattern.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
| 22 #include "base/threading/thread_task_runner_handle.h" | 22 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "chrome/browser/chromeos/arc/arc_util.h" | 23 #include "chrome/browser/chromeos/arc/arc_util.h" |
| (...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 : IDS_ASH_SHELF_APP_LIST_LAUNCHER_TITLE); | 1486 : IDS_ASH_SHELF_APP_LIST_LAUNCHER_TITLE); |
| 1487 | 1487 |
| 1488 const int app_list_index = model_->GetItemIndexForType(ash::TYPE_APP_LIST); | 1488 const int app_list_index = model_->GetItemIndexForType(ash::TYPE_APP_LIST); |
| 1489 DCHECK_GE(app_list_index, 0); | 1489 DCHECK_GE(app_list_index, 0); |
| 1490 ash::ShelfItem item = model_->items()[app_list_index]; | 1490 ash::ShelfItem item = model_->items()[app_list_index]; |
| 1491 if (item.title != title) { | 1491 if (item.title != title) { |
| 1492 item.title = title; | 1492 item.title = title; |
| 1493 model_->Set(app_list_index, item); | 1493 model_->Set(app_list_index, item); |
| 1494 } | 1494 } |
| 1495 } | 1495 } |
| OLD | NEW |