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

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

Issue 2290753004: Finish changing chrome/ grit includes to use qualified paths. (Closed)
Patch Set: Rebase, fix new unqualified include Created 4 years, 3 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/ui/webui/about_ui.cc ('k') | chrome/browser/ui/webui/invalidations_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/gcm_internals_ui.h" 5 #include "chrome/browser/ui/webui/gcm_internals_ui.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.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/services/gcm/gcm_profile_service_factory.h" 15 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "components/gcm_driver/gcm_client.h" 17 #include "components/gcm_driver/gcm_client.h"
18 #include "components/gcm_driver/gcm_driver.h" 18 #include "components/gcm_driver/gcm_driver.h"
19 #include "components/gcm_driver/gcm_internals_constants.h" 19 #include "components/gcm_driver/gcm_internals_constants.h"
20 #include "components/gcm_driver/gcm_internals_helper.h" 20 #include "components/gcm_driver/gcm_internals_helper.h"
21 #include "components/gcm_driver/gcm_profile_service.h" 21 #include "components/gcm_driver/gcm_profile_service.h"
22 #include "components/grit/components_resources.h"
22 #include "content/public/browser/web_ui.h" 23 #include "content/public/browser/web_ui.h"
23 #include "content/public/browser/web_ui_controller.h" 24 #include "content/public/browser/web_ui_controller.h"
24 #include "content/public/browser/web_ui_data_source.h" 25 #include "content/public/browser/web_ui_data_source.h"
25 #include "content/public/browser/web_ui_message_handler.h" 26 #include "content/public/browser/web_ui_message_handler.h"
26 #include "grit/components_resources.h"
27 27
28 namespace { 28 namespace {
29 29
30 // Class acting as a controller of the chrome://gcm-internals WebUI. 30 // Class acting as a controller of the chrome://gcm-internals WebUI.
31 class GcmInternalsUIMessageHandler : public content::WebUIMessageHandler { 31 class GcmInternalsUIMessageHandler : public content::WebUIMessageHandler {
32 public: 32 public:
33 GcmInternalsUIMessageHandler(); 33 GcmInternalsUIMessageHandler();
34 ~GcmInternalsUIMessageHandler() override; 34 ~GcmInternalsUIMessageHandler() override;
35 35
36 // WebUIMessageHandler implementation. 36 // WebUIMessageHandler implementation.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); 170 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML);
171 html_source->DisableI18nAndUseGzipForAllPaths(); 171 html_source->DisableI18nAndUseGzipForAllPaths();
172 172
173 Profile* profile = Profile::FromWebUI(web_ui); 173 Profile* profile = Profile::FromWebUI(web_ui);
174 content::WebUIDataSource::Add(profile, html_source); 174 content::WebUIDataSource::Add(profile, html_source);
175 175
176 web_ui->AddMessageHandler(new GcmInternalsUIMessageHandler()); 176 web_ui->AddMessageHandler(new GcmInternalsUIMessageHandler());
177 } 177 }
178 178
179 GCMInternalsUI::~GCMInternalsUI() {} 179 GCMInternalsUI::~GCMInternalsUI() {}
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/browser/ui/webui/invalidations_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698