OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |