OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_mus.h" | 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 10 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 ash::ShelfID ChromeLauncherControllerMus::CreateAppLauncherItem( | 64 ash::ShelfID ChromeLauncherControllerMus::CreateAppLauncherItem( |
65 LauncherItemController* controller, | 65 LauncherItemController* controller, |
66 const std::string& app_id, | 66 const std::string& app_id, |
67 ash::ShelfItemStatus status) { | 67 ash::ShelfItemStatus status) { |
68 NOTIMPLEMENTED(); | 68 NOTIMPLEMENTED(); |
69 return ash::TYPE_UNDEFINED; | 69 return ash::TYPE_UNDEFINED; |
70 } | 70 } |
71 | 71 |
72 const ash::ShelfItem& ChromeLauncherControllerMus::GetItem( | 72 const ash::ShelfItem* ChromeLauncherControllerMus::GetItem( |
73 ash::ShelfID id) const { | 73 ash::ShelfID id) const { |
74 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
75 return fake_item_; | 75 return nullptr; |
76 } | 76 } |
77 | 77 |
78 void ChromeLauncherControllerMus::SetItemType(ash::ShelfID id, | 78 void ChromeLauncherControllerMus::SetItemType(ash::ShelfID id, |
79 ash::ShelfItemType type) { | 79 ash::ShelfItemType type) { |
80 NOTIMPLEMENTED(); | 80 NOTIMPLEMENTED(); |
81 } | 81 } |
82 | 82 |
83 void ChromeLauncherControllerMus::SetItemStatus(ash::ShelfID id, | 83 void ChromeLauncherControllerMus::SetItemStatus(ash::ShelfID id, |
84 ash::ShelfItemStatus status) { | 84 ash::ShelfItemStatus status) { |
85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 app_id_to_item_delegate_.insert( | 315 app_id_to_item_delegate_.insert( |
316 std::make_pair(app_id, std::move(delegate))); | 316 std::make_pair(app_id, std::move(delegate))); |
317 | 317 |
318 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); | 318 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); |
319 if (app_icon_loader) { | 319 if (app_icon_loader) { |
320 app_icon_loader->FetchImage(app_id); | 320 app_icon_loader->FetchImage(app_id); |
321 app_icon_loader->UpdateImage(app_id); | 321 app_icon_loader->UpdateImage(app_id); |
322 } | 322 } |
323 } | 323 } |
324 } | 324 } |
OLD | NEW |