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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_favicon_source.cc

Issue 5676004: Cleanup: Remove unneeded browser_thread.h usage. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix deps Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" 5 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
12 #include "grit/app_resources.h" 11 #include "grit/app_resources.h"
13 12
14 DOMUIFavIconSource::DOMUIFavIconSource(Profile* profile) 13 DOMUIFavIconSource::DOMUIFavIconSource(Profile* profile)
15 : DataSource(chrome::kChromeUIFavIconHost, MessageLoop::current()), 14 : DataSource(chrome::kChromeUIFavIconHost, MessageLoop::current()),
16 profile_(profile->GetOriginalProfile()) { 15 profile_(profile->GetOriginalProfile()) {
17 } 16 }
18 17
19 DOMUIFavIconSource::~DOMUIFavIconSource() { 18 DOMUIFavIconSource::~DOMUIFavIconSource() {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 75
77 void DOMUIFavIconSource::SendDefaultResponse(int request_id) { 76 void DOMUIFavIconSource::SendDefaultResponse(int request_id) {
78 if (!default_favicon_.get()) { 77 if (!default_favicon_.get()) {
79 default_favicon_ = 78 default_favicon_ =
80 ResourceBundle::GetSharedInstance().LoadDataResourceBytes( 79 ResourceBundle::GetSharedInstance().LoadDataResourceBytes(
81 IDR_DEFAULT_FAVICON); 80 IDR_DEFAULT_FAVICON);
82 } 81 }
83 82
84 SendResponse(request_id, default_favicon_); 83 SendResponse(request_id, default_favicon_);
85 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698