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

Unified Diff: chrome/browser/icon_loader_aurax11.cc

Issue 74543002: Rename icon_loader_aurax11 as icon_loader_auralinux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/icon_loader_auralinux.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_loader_aurax11.cc
diff --git a/chrome/browser/icon_loader_aurax11.cc b/chrome/browser/icon_loader_aurax11.cc
deleted file mode 100644
index df7b1ee08a6b140cfbcb07e6e2fd8128d2f9310a..0000000000000000000000000000000000000000
--- a/chrome/browser/icon_loader_aurax11.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2013 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 "chrome/browser/icon_loader.h"
-
-#include "base/bind.h"
-#include "base/message_loop/message_loop.h"
-#include "base/nix/mime_util_xdg.h"
-#include "ui/views/linux_ui/linux_ui.h"
-
-// static
-IconGroupID IconLoader::ReadGroupIDFromFilepath(
- const base::FilePath& filepath) {
- return base::nix::GetFileMimeType(filepath);
-}
-
-bool IconLoader::IsIconMutableFromFilepath(const base::FilePath&) {
- return false;
-}
-
-void IconLoader::ReadIcon() {
- int size_pixels = 0;
- switch (icon_size_) {
- case IconLoader::SMALL:
- size_pixels = 16;
- break;
- case IconLoader::NORMAL:
- size_pixels = 32;
- break;
- case IconLoader::LARGE:
- size_pixels = 48;
- break;
- default:
- NOTREACHED();
- }
-
- views::LinuxUI* ui = views::LinuxUI::instance();
- if (ui) {
- gfx::Image image = ui->GetIconForContentType(group_, size_pixels);
- if (!image.IsEmpty())
- image_.reset(new gfx::Image(image));
- }
-
- target_message_loop_->PostTask(
- FROM_HERE, base::Bind(&IconLoader::NotifyDelegate, this));
-}
« no previous file with comments | « chrome/browser/icon_loader_auralinux.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698