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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc

Issue 2055553004: arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: chrome_mash_shelf_controller.cc update due namespace renaming Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc b/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
index 8df9c679549af988de3808c036d41bc34ef63fb0..434a02ecdd845760dc549d5448cf4f96da711eba 100644
--- a/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_mash_shelf_controller.cc
@@ -78,10 +78,11 @@ void ChromeMashShelfController::Init() {
Profile* profile = ProfileManager::GetActiveUserProfile();
int64_t display_id = display::Screen::GetScreen()->GetPrimaryDisplay().id();
shelf_controller_->SetAlignment(static_cast<mash::shelf::mojom::Alignment>(
- ash::GetShelfAlignmentPref(profile->GetPrefs(), display_id)));
+ ash::launcher::GetShelfAlignmentPref(profile->GetPrefs(), display_id)));
shelf_controller_->SetAutoHideBehavior(
static_cast<mash::shelf::mojom::AutoHideBehavior>(
- ash::GetShelfAutoHideBehaviorPref(profile->GetPrefs(), display_id)));
+ ash::launcher::GetShelfAutoHideBehaviorPref(profile->GetPrefs(),
+ display_id)));
// TODO(skuhne): The AppIconLoaderImpl has the same problem. Each loaded
// image is associated with a profile (its loader requires the profile).
@@ -110,10 +111,10 @@ void ChromeMashShelfController::Init() {
void ChromeMashShelfController::PinAppsFromPrefs() {
Profile* profile = ProfileManager::GetActiveUserProfile();
std::vector<std::string> pinned_apps =
- ash::GetPinnedAppsFromPrefs(profile->GetPrefs(), &helper_);
+ ash::launcher::GetPinnedAppsFromPrefs(profile->GetPrefs(), &helper_);
for (const auto& app : pinned_apps) {
- if (app == ash::kPinnedAppsPlaceholder)
+ if (app == ash::launcher::kPinnedAppsPlaceholder)
continue;
mash::shelf::mojom::ShelfItemPtr item(mash::shelf::mojom::ShelfItem::New());
@@ -149,7 +150,7 @@ AppIconLoader* ChromeMashShelfController::GetAppIconLoaderForApp(
void ChromeMashShelfController::OnAlignmentChanged(
mash::shelf::mojom::Alignment alignment) {
- ash::SetShelfAlignmentPref(
+ ash::launcher::SetShelfAlignmentPref(
ProfileManager::GetActiveUserProfile()->GetPrefs(),
display::Screen::GetScreen()->GetPrimaryDisplay().id(),
static_cast<ash::ShelfAlignment>(alignment));
@@ -157,7 +158,7 @@ void ChromeMashShelfController::OnAlignmentChanged(
void ChromeMashShelfController::OnAutoHideBehaviorChanged(
mash::shelf::mojom::AutoHideBehavior auto_hide) {
- ash::SetShelfAutoHideBehaviorPref(
+ ash::launcher::SetShelfAutoHideBehaviorPref(
ProfileManager::GetActiveUserProfile()->GetPrefs(),
display::Screen::GetScreen()->GetPrimaryDisplay().id(),
static_cast<ash::ShelfAutoHideBehavior>(auto_hide));

Powered by Google App Engine
This is Rietveld 408576698