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

Side by Side Diff: chrome/browser/ui/webui/sync_internals_ui.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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/ui/webui/screenshot_source.cc ('k') | chrome/common/important_file_writer.cc » ('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/ui/webui/sync_internals_ui.h" 5 #include "chrome/browser/ui/webui/sync_internals_ui.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/task.h"
13 #include "base/tracked_objects.h" 12 #include "base/tracked_objects.h"
14 #include "base/values.h" 13 #include "base/values.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/sync/js/js_arg_list.h" 15 #include "chrome/browser/sync/js/js_arg_list.h"
17 #include "chrome/browser/sync/js/js_controller.h" 16 #include "chrome/browser/sync/js/js_controller.h"
18 #include "chrome/browser/sync/js/js_event_details.h" 17 #include "chrome/browser/sync/js/js_event_details.h"
19 #include "chrome/browser/sync/profile_sync_service.h" 18 #include "chrome/browser/sync/profile_sync_service.h"
20 #include "chrome/browser/sync/sync_ui_util.h" 19 #include "chrome/browser/sync/sync_ui_util.h"
21 #include "chrome/browser/sync/util/weak_handle.h" 20 #include "chrome/browser/sync/util/weak_handle.h"
22 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 } 134 }
136 135
137 void SyncInternalsUI::HandleJsReply( 136 void SyncInternalsUI::HandleJsReply(
138 const std::string& name, const JsArgList& args) { 137 const std::string& name, const JsArgList& args) {
139 VLOG(1) << "Handling reply for " << name << " message with args " 138 VLOG(1) << "Handling reply for " << name << " message with args "
140 << args.ToString(); 139 << args.ToString();
141 const std::string& reply_handler = "chrome.sync." + name + ".handleReply"; 140 const std::string& reply_handler = "chrome.sync." + name + ".handleReply";
142 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end()); 141 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end());
143 CallJavascriptFunction(reply_handler, arg_list); 142 CallJavascriptFunction(reply_handler, arg_list);
144 } 143 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/screenshot_source.cc ('k') | chrome/common/important_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698