Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / webui / chromeos / login / screenlock_icon_provider.cc
bloba5e771a612ab656f93346fdcfa0ca3e11e8f443a
1 // Copyright 2013 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/ui/webui/chromeos/login/screenlock_icon_provider.h"
7 namespace chromeos {
9 ScreenlockIconProvider::ScreenlockIconProvider() {}
11 ScreenlockIconProvider::~ScreenlockIconProvider() {}
13 void ScreenlockIconProvider::AddIcon(const std::string& username,
14 const gfx::Image& icon) {
15 user_icon_map_[username] = icon;
18 gfx::Image ScreenlockIconProvider::GetIcon(const std::string& username) {
19 if (user_icon_map_.find(username) == user_icon_map_.end())
20 return gfx::Image();
21 return user_icon_map_[username];
24 void ScreenlockIconProvider::Clear() {
25 user_icon_map_.clear();
28 } // namespace chromeos