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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/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/js_arg_list.h"
16 #include "chrome/browser/sync/js/js_controller.h"
17 #include "chrome/browser/sync/js/js_event_details.h"
18 #include "chrome/browser/sync/profile_sync_service.h" 15 #include "chrome/browser/sync/profile_sync_service.h"
19 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
20 #include "chrome/browser/sync/sync_ui_util.h" 17 #include "chrome/browser/sync/sync_ui_util.h"
21 #include "chrome/browser/sync/util/weak_handle.h"
22 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 18 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
23 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
24 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 20 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
25 #include "chrome/common/extensions/extension_messages.h" 21 #include "chrome/common/extensions/extension_messages.h"
26 #include "chrome/common/url_constants.h" 22 #include "chrome/common/url_constants.h"
27 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
28 #include "content/public/browser/web_ui.h" 24 #include "content/public/browser/web_ui.h"
29 #include "grit/sync_internals_resources.h" 25 #include "grit/sync_internals_resources.h"
26 #include "sync/js/js_arg_list.h"
27 #include "sync/js/js_controller.h"
28 #include "sync/js/js_event_details.h"
29 #include "sync/util/weak_handle.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 31
32 using browser_sync::JsArgList; 32 using browser_sync::JsArgList;
33 using browser_sync::JsEventDetails; 33 using browser_sync::JsEventDetails;
34 using browser_sync::JsReplyHandler; 34 using browser_sync::JsReplyHandler;
35 using browser_sync::WeakHandle; 35 using browser_sync::WeakHandle;
36 using content::WebContents; 36 using content::WebContents;
37 37
38 namespace { 38 namespace {
39 39
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 } 137 }
138 138
139 void SyncInternalsUI::HandleJsReply( 139 void SyncInternalsUI::HandleJsReply(
140 const std::string& name, const JsArgList& args) { 140 const std::string& name, const JsArgList& args) {
141 VLOG(1) << "Handling reply for " << name << " message with args " 141 VLOG(1) << "Handling reply for " << name << " message with args "
142 << args.ToString(); 142 << args.ToString();
143 const std::string& reply_handler = "chrome.sync." + name + ".handleReply"; 143 const std::string& reply_handler = "chrome.sync." + name + ".handleReply";
144 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end()); 144 std::vector<const Value*> arg_list(args.Get().begin(), args.Get().end());
145 web_ui()->CallJavascriptFunction(reply_handler, arg_list); 145 web_ui()->CallJavascriptFunction(reply_handler, arg_list);
146 } 146 }
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