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

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

Issue 2617243002: Remove ScopedVector from ios/. (Closed)
Patch Set: rebase Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.h" 5 #include "ios/chrome/browser/ui/webui/gcm/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/ptr_util.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "components/gcm_driver/gcm_client.h" 15 #include "components/gcm_driver/gcm_client.h"
15 #include "components/gcm_driver/gcm_driver.h" 16 #include "components/gcm_driver/gcm_driver.h"
16 #include "components/gcm_driver/gcm_internals_constants.h" 17 #include "components/gcm_driver/gcm_internals_constants.h"
17 #include "components/gcm_driver/gcm_internals_helper.h" 18 #include "components/gcm_driver/gcm_internals_helper.h"
18 #include "components/gcm_driver/gcm_profile_service.h" 19 #include "components/gcm_driver/gcm_profile_service.h"
19 #include "components/grit/components_resources.h" 20 #include "components/grit/components_resources.h"
20 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 21 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
21 #include "ios/chrome/browser/chrome_url_constants.h" 22 #include "ios/chrome/browser/chrome_url_constants.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Add required resources. 165 // Add required resources.
165 html_source->AddResourcePath(gcm_driver::kGcmInternalsCSS, 166 html_source->AddResourcePath(gcm_driver::kGcmInternalsCSS,
166 IDR_GCM_DRIVER_GCM_INTERNALS_CSS); 167 IDR_GCM_DRIVER_GCM_INTERNALS_CSS);
167 html_source->AddResourcePath(gcm_driver::kGcmInternalsJS, 168 html_source->AddResourcePath(gcm_driver::kGcmInternalsJS,
168 IDR_GCM_DRIVER_GCM_INTERNALS_JS); 169 IDR_GCM_DRIVER_GCM_INTERNALS_JS);
169 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML); 170 html_source->SetDefaultResource(IDR_GCM_DRIVER_GCM_INTERNALS_HTML);
170 171
171 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), 172 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui),
172 html_source); 173 html_source);
173 174
174 web_ui->AddMessageHandler(new GcmInternalsUIMessageHandler()); 175 web_ui->AddMessageHandler(base::MakeUnique<GcmInternalsUIMessageHandler>());
175 } 176 }
176 177
177 GCMInternalsUI::~GCMInternalsUI() {} 178 GCMInternalsUI::~GCMInternalsUI() {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/flags_ui.cc ('k') | ios/chrome/browser/ui/webui/net_export/net_export_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698