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

Side by Side Diff: components/dom_distiller/webui/dom_distiller_ui.cc

Issue 2712513004: Use a qualified path for grit-generated headers in components/ (Closed)
Patch Set: more checkdeps Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/dom_distiller/webui/dom_distiller_ui.h" 5 #include "components/dom_distiller/webui/dom_distiller_ui.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "components/dom_distiller/core/dom_distiller_constants.h" 8 #include "components/dom_distiller/core/dom_distiller_constants.h"
9 #include "components/dom_distiller/core/dom_distiller_service.h" 9 #include "components/dom_distiller/core/dom_distiller_service.h"
10 #include "components/dom_distiller/webui/dom_distiller_handler.h" 10 #include "components/dom_distiller/webui/dom_distiller_handler.h"
11 #include "components/grit/components_resources.h"
12 #include "components/strings/grit/components_strings.h"
11 #include "content/public/browser/browser_context.h" 13 #include "content/public/browser/browser_context.h"
12 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
13 #include "content/public/browser/web_ui.h" 15 #include "content/public/browser/web_ui.h"
14 #include "content/public/browser/web_ui_data_source.h" 16 #include "content/public/browser/web_ui_data_source.h"
15 #include "grit/components_resources.h"
16 #include "grit/components_strings.h"
17 17
18 namespace dom_distiller { 18 namespace dom_distiller {
19 19
20 DomDistillerUi::DomDistillerUi(content::WebUI* web_ui, 20 DomDistillerUi::DomDistillerUi(content::WebUI* web_ui,
21 DomDistillerService* service, 21 DomDistillerService* service,
22 const std::string& scheme) 22 const std::string& scheme)
23 : content::WebUIController(web_ui) { 23 : content::WebUIController(web_ui) {
24 // Set up WebUIDataSource. 24 // Set up WebUIDataSource.
25 content::WebUIDataSource* source = 25 content::WebUIDataSource* source =
26 content::WebUIDataSource::Create(kChromeUIDomDistillerHost); 26 content::WebUIDataSource::Create(kChromeUIDomDistillerHost);
(...skipping 25 matching lines...) Expand all
52 source->SetJsonPath("strings.js"); 52 source->SetJsonPath("strings.js");
53 53
54 // Add message handler. 54 // Add message handler.
55 web_ui->AddMessageHandler( 55 web_ui->AddMessageHandler(
56 base::MakeUnique<DomDistillerHandler>(service, scheme)); 56 base::MakeUnique<DomDistillerHandler>(service, scheme));
57 } 57 }
58 58
59 DomDistillerUi::~DomDistillerUi() {} 59 DomDistillerUi::~DomDistillerUi() {}
60 60
61 } // namespace dom_distiller 61 } // namespace dom_distiller
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698