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

Side by Side Diff: chrome/browser/printing/cloud_print/cloud_print_setup_flow.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
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/printing/cloud_print/cloud_print_setup_flow.h" 5 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/singleton.h" 8 #include "base/singleton.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Profile* profile, 81 Profile* profile,
82 Delegate* delegate, 82 Delegate* delegate,
83 bool setup_done) 83 bool setup_done)
84 : dom_ui_(NULL), 84 : dom_ui_(NULL),
85 dialog_start_args_(args), 85 dialog_start_args_(args),
86 setup_done_(setup_done), 86 setup_done_(setup_done),
87 process_control_(NULL), 87 process_control_(NULL),
88 delegate_(delegate) { 88 delegate_(delegate) {
89 // TODO(hclam): The data source should be added once. 89 // TODO(hclam): The data source should be added once.
90 profile_ = profile; 90 profile_ = profile;
91 profile->GetChromeURLDataManager()->AddDataSource( 91 BrowserThread::PostTask(
92 new CloudPrintSetupSource()); 92 BrowserThread::IO, FROM_HERE,
93 NewRunnableMethod(ChromeURLDataManager::GetInstance(),
94 &ChromeURLDataManager::AddDataSource,
95 make_scoped_refptr(new CloudPrintSetupSource())));
93 } 96 }
94 97
95 CloudPrintSetupFlow::~CloudPrintSetupFlow() { 98 CloudPrintSetupFlow::~CloudPrintSetupFlow() {
96 } 99 }
97 100
98 void CloudPrintSetupFlow::Focus() { 101 void CloudPrintSetupFlow::Focus() {
99 // TODO(pranavk): implement this method. 102 // TODO(pranavk): implement this method.
100 NOTIMPLEMENTED(); 103 NOTIMPLEMENTED();
101 } 104 }
102 105
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 } 287 }
285 288
286 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame( 289 void CloudPrintSetupFlow::ExecuteJavascriptInIFrame(
287 const std::wstring& iframe_xpath, 290 const std::wstring& iframe_xpath,
288 const std::wstring& js) { 291 const std::wstring& js) {
289 if (dom_ui_) { 292 if (dom_ui_) {
290 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host(); 293 RenderViewHost* rvh = dom_ui_->tab_contents()->render_view_host();
291 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js); 294 rvh->ExecuteJavascriptInWebFrame(iframe_xpath, js);
292 } 295 }
293 } 296 }
OLDNEW
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698