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

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

Issue 6461024: Revert 74292 - Splits ChromeURLDataManager into 2 chunks:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months 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/conflicts_ui.h" 5 #include "chrome/browser/dom_ui/conflicts_ui.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/string_number_conversions.h" 11 #include "base/string_number_conversions.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 14 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
15 #include "chrome/browser/enumerate_modules_model_win.h" 15 #include "chrome/browser/enumerate_modules_model_win.h"
16 #include "chrome/browser/metrics/user_metrics.h" 16 #include "chrome/browser/metrics/user_metrics.h"
17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/tab_contents/tab_contents.h" 17 #include "chrome/browser/tab_contents/tab_contents.h"
19 #include "chrome/common/jstemplate_builder.h" 18 #include "chrome/common/jstemplate_builder.h"
20 #include "chrome/common/notification_observer.h" 19 #include "chrome/common/notification_observer.h"
21 #include "chrome/common/notification_registrar.h" 20 #include "chrome/common/notification_registrar.h"
22 #include "chrome/common/notification_service.h" 21 #include "chrome/common/notification_service.h"
23 #include "chrome/common/url_constants.h" 22 #include "chrome/common/url_constants.h"
24 #include "grit/browser_resources.h" 23 #include "grit/browser_resources.h"
25 #include "grit/chromium_strings.h" 24 #include "grit/chromium_strings.h"
26 #include "grit/generated_resources.h" 25 #include "grit/generated_resources.h"
27 #include "grit/theme_resources.h" 26 #include "grit/theme_resources.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 195
197 ConflictsUI::ConflictsUI(TabContents* contents) : DOMUI(contents) { 196 ConflictsUI::ConflictsUI(TabContents* contents) : DOMUI(contents) {
198 UserMetrics::RecordAction( 197 UserMetrics::RecordAction(
199 UserMetricsAction("ViewAboutConflicts"), contents->profile()); 198 UserMetricsAction("ViewAboutConflicts"), contents->profile());
200 199
201 AddMessageHandler((new ConflictsDOMHandler())->Attach(this)); 200 AddMessageHandler((new ConflictsDOMHandler())->Attach(this));
202 201
203 ConflictsUIHTMLSource* html_source = new ConflictsUIHTMLSource(); 202 ConflictsUIHTMLSource* html_source = new ConflictsUIHTMLSource();
204 203
205 // Set up the about:conflicts source. 204 // Set up the about:conflicts source.
206 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); 205 BrowserThread::PostTask(
206 BrowserThread::IO, FROM_HERE,
207 NewRunnableMethod(ChromeURLDataManager::GetInstance(),
208 &ChromeURLDataManager::AddDataSource,
209 make_scoped_refptr(html_source)));
207 } 210 }
208 211
209 // static 212 // static
210 RefCountedMemory* ConflictsUI::GetFaviconResourceBytes() { 213 RefCountedMemory* ConflictsUI::GetFaviconResourceBytes() {
211 return ResourceBundle::GetSharedInstance(). 214 return ResourceBundle::GetSharedInstance().
212 LoadDataResourceBytes(IDR_CONFLICT_FAVICON); 215 LoadDataResourceBytes(IDR_CONFLICT_FAVICON);
213 } 216 }
214 217
215 #endif 218 #endif
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager_backend.cc ('k') | chrome/browser/dom_ui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698