OLD | NEW |
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 "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/webui/sync_internals_message_handler.h" | 9 #include "chrome/browser/ui/webui/sync_internals_message_handler.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 source->AddResourcePath(syncer::sync_ui_util::kSyncSearchJS, | 33 source->AddResourcePath(syncer::sync_ui_util::kSyncSearchJS, |
34 IDR_SYNC_DRIVER_SYNC_INTERNALS_SYNC_SEARCH_JS); | 34 IDR_SYNC_DRIVER_SYNC_INTERNALS_SYNC_SEARCH_JS); |
35 source->AddResourcePath(syncer::sync_ui_util::kAboutJS, | 35 source->AddResourcePath(syncer::sync_ui_util::kAboutJS, |
36 IDR_SYNC_DRIVER_SYNC_INTERNALS_ABOUT_JS); | 36 IDR_SYNC_DRIVER_SYNC_INTERNALS_ABOUT_JS); |
37 source->AddResourcePath(syncer::sync_ui_util::kDataJS, | 37 source->AddResourcePath(syncer::sync_ui_util::kDataJS, |
38 IDR_SYNC_DRIVER_SYNC_INTERNALS_DATA_JS); | 38 IDR_SYNC_DRIVER_SYNC_INTERNALS_DATA_JS); |
39 source->AddResourcePath(syncer::sync_ui_util::kEventsJS, | 39 source->AddResourcePath(syncer::sync_ui_util::kEventsJS, |
40 IDR_SYNC_DRIVER_SYNC_INTERNALS_EVENTS_JS); | 40 IDR_SYNC_DRIVER_SYNC_INTERNALS_EVENTS_JS); |
41 source->AddResourcePath(syncer::sync_ui_util::kSearchJS, | 41 source->AddResourcePath(syncer::sync_ui_util::kSearchJS, |
42 IDR_SYNC_DRIVER_SYNC_INTERNALS_SEARCH_JS); | 42 IDR_SYNC_DRIVER_SYNC_INTERNALS_SEARCH_JS); |
| 43 source->AddResourcePath(syncer::sync_ui_util::kUserEventsJS, |
| 44 IDR_SYNC_DRIVER_SYNC_INTERNALS_USER_EVENTS_JS); |
43 source->SetDefaultResource(IDR_SYNC_DRIVER_SYNC_INTERNALS_INDEX_HTML); | 45 source->SetDefaultResource(IDR_SYNC_DRIVER_SYNC_INTERNALS_INDEX_HTML); |
44 return source; | 46 return source; |
45 } | 47 } |
46 | 48 |
47 } // namespace | 49 } // namespace |
48 | 50 |
49 SyncInternalsUI::SyncInternalsUI(content::WebUI* web_ui) | 51 SyncInternalsUI::SyncInternalsUI(content::WebUI* web_ui) |
50 : WebUIController(web_ui) { | 52 : WebUIController(web_ui) { |
51 Profile* profile = Profile::FromWebUI(web_ui); | 53 Profile* profile = Profile::FromWebUI(web_ui); |
52 content::WebUIDataSource::Add(profile, CreateSyncInternalsHTMLSource()); | 54 content::WebUIDataSource::Add(profile, CreateSyncInternalsHTMLSource()); |
53 | 55 |
54 web_ui->AddMessageHandler(base::MakeUnique<SyncInternalsMessageHandler>()); | 56 web_ui->AddMessageHandler(base::MakeUnique<SyncInternalsMessageHandler>()); |
55 } | 57 } |
56 | 58 |
57 SyncInternalsUI::~SyncInternalsUI() {} | 59 SyncInternalsUI::~SyncInternalsUI() {} |
58 | 60 |
OLD | NEW |