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

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

Issue 194333002: Move extension_messages.h to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 6 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 "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/webui/sync_internals_message_handler.h" 8 #include "chrome/browser/ui/webui/sync_internals_message_handler.h"
9 #include "chrome/common/extensions/extension_messages.h"
10 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
11 #include "content/public/browser/web_ui.h" 10 #include "content/public/browser/web_ui.h"
12 #include "content/public/browser/web_ui_data_source.h" 11 #include "content/public/browser/web_ui_data_source.h"
12 #include "extensions/common/extension_messages.h"
13 #include "grit/sync_internals_resources.h" 13 #include "grit/sync_internals_resources.h"
14 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
15 15
16 namespace { 16 namespace {
17 17
18 content::WebUIDataSource* CreateSyncInternalsHTMLSource() { 18 content::WebUIDataSource* CreateSyncInternalsHTMLSource() {
19 content::WebUIDataSource* source = 19 content::WebUIDataSource* source =
20 content::WebUIDataSource::Create(chrome::kChromeUISyncInternalsHost); 20 content::WebUIDataSource::Create(chrome::kChromeUISyncInternalsHost);
21 21
22 source->SetJsonPath("strings.js"); 22 source->SetJsonPath("strings.js");
(...skipping 21 matching lines...) Expand all
44 SyncInternalsUI::SyncInternalsUI(content::WebUI* web_ui) 44 SyncInternalsUI::SyncInternalsUI(content::WebUI* web_ui)
45 : WebUIController(web_ui) { 45 : WebUIController(web_ui) {
46 Profile* profile = Profile::FromWebUI(web_ui); 46 Profile* profile = Profile::FromWebUI(web_ui);
47 content::WebUIDataSource::Add(profile, CreateSyncInternalsHTMLSource()); 47 content::WebUIDataSource::Add(profile, CreateSyncInternalsHTMLSource());
48 48
49 web_ui->AddMessageHandler(new SyncInternalsMessageHandler); 49 web_ui->AddMessageHandler(new SyncInternalsMessageHandler);
50 } 50 }
51 51
52 SyncInternalsUI::~SyncInternalsUI() {} 52 SyncInternalsUI::~SyncInternalsUI() {}
53 53
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/web_applications/web_app_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698