blob: a0b8e5b96f146c97873c0edd1031bd909eb75045 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/network_connect_delegate_mus.h"
#include "ash/shell.h"
#include "ash/system/model/system_tray_model.h"
#include "base/logging.h"
namespace ash {
NetworkConnectDelegateMus::NetworkConnectDelegateMus() = default;
NetworkConnectDelegateMus::~NetworkConnectDelegateMus() = default;
void NetworkConnectDelegateMus::ShowNetworkConfigure(
const std::string& network_id) {
Shell::Get()->system_tray_model()->client_ptr()->ShowNetworkConfigure(
network_id);
}
void NetworkConnectDelegateMus::ShowNetworkSettings(
const std::string& network_id) {
Shell::Get()->system_tray_model()->client_ptr()->ShowNetworkSettings(
network_id);
}
bool NetworkConnectDelegateMus::ShowEnrollNetwork(
const std::string& network_id) {
// TODO(mash): http://crbug.com/644355
NOTIMPLEMENTED_LOG_ONCE();
return false;
}
void NetworkConnectDelegateMus::ShowMobileSetupDialog(
const std::string& network_id) {
// TODO(mash): http://crbug.com/644355
NOTIMPLEMENTED_LOG_ONCE();
}
void NetworkConnectDelegateMus::ShowNetworkConnectError(
const std::string& error_name,
const std::string& network_id) {
// TODO(mash): http://crbug.com/644355
LOG(ERROR) << "Network Connect Error: " << error_name
<< " For: " << network_id;
}
void NetworkConnectDelegateMus::ShowMobileActivationError(
const std::string& network_id) {
// TODO(mash): http://crbug.com/644355
LOG(ERROR) << "Mobile Activation Error For: " << network_id;
}
} // namespace ash