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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc

Issue 2551243002: Use ChromeLauncherControllerImpl::GetItem; cleanup. (Closed)
Patch Set: Address comment. Created 4 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
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698