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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order 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_thumbnail_source.h" 5 #include "chrome/browser/dom_ui/dom_ui_thumbnail_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/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/history/top_sites.h" 10 #include "chrome/browser/history/top_sites.h"
11 #include "chrome/common/notification_service.h"
12 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
13 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
14 #include "grit/theme_resources.h" 13 #include "grit/theme_resources.h"
15 14
16 DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile) 15 DOMUIThumbnailSource::DOMUIThumbnailSource(Profile* profile)
17 : DataSource(chrome::kChromeUIThumbnailPath, MessageLoop::current()), 16 : DataSource(chrome::kChromeUIThumbnailPath, MessageLoop::current()),
18 profile_(profile) { 17 profile_(profile) {
19 if (history::TopSites::IsEnabled()) { 18 if (history::TopSites::IsEnabled()) {
20 // Set TopSites now as Profile isn't thread safe. 19 // Set TopSites now as Profile isn't thread safe.
21 top_sites_ = profile_->GetTopSites(); 20 top_sites_ = profile_->GetTopSites();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 HistoryService::Handle request_handle, 78 HistoryService::Handle request_handle,
80 scoped_refptr<RefCountedBytes> data) { 79 scoped_refptr<RefCountedBytes> data) {
81 int request_id = cancelable_consumer_.GetClientDataForCurrentRequest(); 80 int request_id = cancelable_consumer_.GetClientDataForCurrentRequest();
82 // Forward the data along to the networking system. 81 // Forward the data along to the networking system.
83 if (data.get() && !data->data.empty()) { 82 if (data.get() && !data->data.empty()) {
84 SendResponse(request_id, data); 83 SendResponse(request_id, data);
85 } else { 84 } else {
86 SendDefaultThumbnail(request_id); 85 SendDefaultThumbnail(request_id);
87 } 86 }
88 } 87 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/extension_ports_remote_service.cc ('k') | chrome/browser/dom_ui/history2_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698