Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / chromeos / dbus / chrome_console_service_provider_delegate.cc
blobe6c0a0d815da7e5126e2b4bc8647206a699a5a9a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/dbus/chrome_console_service_provider_delegate.h"
7 #include "ash/shell.h"
8 #include "ui/display/chromeos/display_configurator.h"
10 namespace chromeos {
12 ChromeConsoleServiceProviderDelegate::ChromeConsoleServiceProviderDelegate() {
15 ChromeConsoleServiceProviderDelegate::~ChromeConsoleServiceProviderDelegate() {
18 void ChromeConsoleServiceProviderDelegate::TakeDisplayOwnership(
19 const UpdateOwnershipCallback& callback) {
20 ash::Shell::GetInstance()->display_configurator()->TakeControl(callback);
23 void ChromeConsoleServiceProviderDelegate::ReleaseDisplayOwnership(
24 const UpdateOwnershipCallback& callback) {
25 ash::Shell::GetInstance()->display_configurator()->RelinquishControl(
26 callback);
29 } // namespace chromeos