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

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

Issue 7497051: sync: Move all the js_* files into a js/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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) 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 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/task.h" 11 #include "base/task.h"
12 #include "base/tracked_objects.h" 12 #include "base/tracked_objects.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/sync/js_arg_list.h" 15 #include "chrome/browser/sync/js/js_arg_list.h"
16 #include "chrome/browser/sync/js_controller.h" 16 #include "chrome/browser/sync/js/js_controller.h"
17 #include "chrome/browser/sync/js_event_details.h" 17 #include "chrome/browser/sync/js/js_event_details.h"
18 #include "chrome/browser/sync/profile_sync_service.h" 18 #include "chrome/browser/sync/profile_sync_service.h"
19 #include "chrome/browser/sync/sync_ui_util.h" 19 #include "chrome/browser/sync/sync_ui_util.h"
20 #include "chrome/browser/sync/weak_handle.h" 20 #include "chrome/browser/sync/weak_handle.h"
21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 21 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
22 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 22 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
23 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 23 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
24 #include "chrome/common/extensions/extension_messages.h" 24 #include "chrome/common/extensions/extension_messages.h"
25 #include "chrome/common/url_constants.h" 25 #include "chrome/common/url_constants.h"
26 #include "content/browser/browser_thread.h" 26 #include "content/browser/browser_thread.h"
27 #include "grit/sync_internals_resources.h" 27 #include "grit/sync_internals_resources.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void SyncInternalsUI::HandleJsReply( 133 void SyncInternalsUI::HandleJsReply(
134 const std::string& name, const JsArgList& args) { 134 const std::string& name, const JsArgList& args) {
135 VLOG(1) << "Handling reply for " << name << " message with args " 135 VLOG(1) << "Handling reply for " << name << " message with args "
136 << args.ToString(); 136 << args.ToString();
137 const std::string& reply_handler = "chrome.sync." + name + ".handleReply"; 137 const std::string& reply_handler = "chrome.sync." + name + ".handleReply";
138 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end()); 138 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end());
139 CallJavascriptFunction(reply_handler, arg_list); 139 CallJavascriptFunction(reply_handler, arg_list);
140 } 140 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_ui.h ('k') | chrome/browser/ui/webui/sync_internals_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698