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

Side by Side Diff: chrome/browser/ui/webui/cleanup_tool/cleanup_tool_ui.cc

Issue 2788743002: Cleanup Tool WebUI: Add functional HTML and skeleton JS for main content (Closed)
Patch Set: Fix typo and make manager.js closure deps include cleanup_browser_proxy Created 3 years, 8 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
« no previous file with comments | « chrome/browser/resources/cleanup_tool/manager.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/cleanup_tool/cleanup_tool_ui.h" 5 #include "chrome/browser/ui/webui/cleanup_tool/cleanup_tool_ui.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/cleanup_tool/cleanup_action_handler.h" 8 #include "chrome/browser/ui/webui/cleanup_tool/cleanup_action_handler.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "chrome/grit/browser_resources.h" 10 #include "chrome/grit/browser_resources.h"
(...skipping 11 matching lines...) Expand all
22 html_source->AddString("scanAction", "Scan Now"); 22 html_source->AddString("scanAction", "Scan Now");
23 html_source->AddString("scanning", "Scanning"); 23 html_source->AddString("scanning", "Scanning");
24 html_source->AddString("cleanAction", "Run Chrome Cleanup"); 24 html_source->AddString("cleanAction", "Run Chrome Cleanup");
25 html_source->AddString("about", "About Chrome Cleanup"); 25 html_source->AddString("about", "About Chrome Cleanup");
26 html_source->SetJsonPath("strings.js"); 26 html_source->SetJsonPath("strings.js");
27 27
28 html_source->AddResourcePath("cleanup_browser_proxy.html", 28 html_source->AddResourcePath("cleanup_browser_proxy.html",
29 IDR_CLEANUP_TOOL_BROWSER_PROXY_HTML); 29 IDR_CLEANUP_TOOL_BROWSER_PROXY_HTML);
30 html_source->AddResourcePath("cleanup_browser_proxy.js", 30 html_source->AddResourcePath("cleanup_browser_proxy.js",
31 IDR_CLEANUP_TOOL_BROWSER_PROXY_JS); 31 IDR_CLEANUP_TOOL_BROWSER_PROXY_JS);
32 html_source->AddResourcePath("icons.html", IDR_CLEANUP_TOOL_ICONS_HTML);
33 html_source->AddResourcePath("manager.html", IDR_CLEANUP_TOOL_MANAGER_HTML);
34 html_source->AddResourcePath("manager.js", IDR_CLEANUP_TOOL_MANAGER_JS);
32 html_source->AddResourcePath("toolbar.html", IDR_CLEANUP_TOOL_TOOLBAR_HTML); 35 html_source->AddResourcePath("toolbar.html", IDR_CLEANUP_TOOL_TOOLBAR_HTML);
33 html_source->AddResourcePath("toolbar.js", IDR_CLEANUP_TOOL_TOOLBAR_JS); 36 html_source->AddResourcePath("toolbar.js", IDR_CLEANUP_TOOL_TOOLBAR_JS);
34 html_source->SetDefaultResource(IDR_CLEANUP_TOOL_HTML); 37 html_source->SetDefaultResource(IDR_CLEANUP_TOOL_HTML);
35 38
36 Profile* profile = Profile::FromWebUI(web_ui); 39 Profile* profile = Profile::FromWebUI(web_ui);
37 content::WebUIDataSource::Add(profile, html_source); 40 content::WebUIDataSource::Add(profile, html_source);
38 41
39 web_ui->AddMessageHandler(base::MakeUnique<CleanupActionHandler>()); 42 web_ui->AddMessageHandler(base::MakeUnique<CleanupActionHandler>());
40 } 43 }
41 44
42 CleanupToolUI::~CleanupToolUI() {} 45 CleanupToolUI::~CleanupToolUI() {}
OLDNEW
« no previous file with comments | « chrome/browser/resources/cleanup_tool/manager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698