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

Side by Side Diff: ios/chrome/browser/ui/webui/popular_sites_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/popular_sites_internals_ui.h" 5 #include "ios/chrome/browser/ui/webui/popular_sites_internals_ui.h"
6 6
7 #include "base/memory/ptr_util.h"
7 #include "components/grit/components_resources.h" 8 #include "components/grit/components_resources.h"
8 #include "components/ntp_tiles/popular_sites.h" 9 #include "components/ntp_tiles/popular_sites.h"
9 #include "components/ntp_tiles/webui/popular_sites_internals_message_handler.h" 10 #include "components/ntp_tiles/webui/popular_sites_internals_message_handler.h"
10 #include "components/ntp_tiles/webui/popular_sites_internals_message_handler_cli ent.h" 11 #include "components/ntp_tiles/webui/popular_sites_internals_message_handler_cli ent.h"
11 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 12 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
12 #include "ios/chrome/browser/chrome_url_constants.h" 13 #include "ios/chrome/browser/chrome_url_constants.h"
13 #include "ios/chrome/browser/ntp_tiles/ios_popular_sites_factory.h" 14 #include "ios/chrome/browser/ntp_tiles/ios_popular_sites_factory.h"
14 #include "ios/web/public/web_thread.h" 15 #include "ios/web/public/web_thread.h"
15 #include "ios/web/public/web_ui_ios_data_source.h" 16 #include "ios/web/public/web_ui_ios_data_source.h"
16 #include "ios/web/public/webui/web_ui_ios.h" 17 #include "ios/web/public/webui/web_ui_ios.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 source->AddResourcePath("popular_sites_internals.css", 88 source->AddResourcePath("popular_sites_internals.css",
88 IDR_POPULAR_SITES_INTERNALS_CSS); 89 IDR_POPULAR_SITES_INTERNALS_CSS);
89 source->SetDefaultResource(IDR_POPULAR_SITES_INTERNALS_HTML); 90 source->SetDefaultResource(IDR_POPULAR_SITES_INTERNALS_HTML);
90 return source; 91 return source;
91 } 92 }
92 93
93 PopularSitesInternalsUI::PopularSitesInternalsUI(web::WebUIIOS* web_ui) 94 PopularSitesInternalsUI::PopularSitesInternalsUI(web::WebUIIOS* web_ui)
94 : web::WebUIIOSController(web_ui) { 95 : web::WebUIIOSController(web_ui) {
95 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui), 96 web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui),
96 CreatePopularSitesInternalsHTMLSource()); 97 CreatePopularSitesInternalsHTMLSource());
97 web_ui->AddMessageHandler(new IOSPopularSitesInternalsMessageHandlerBridge); 98 web_ui->AddMessageHandler(
99 base::MakeUnique<IOSPopularSitesInternalsMessageHandlerBridge>());
98 } 100 }
99 101
100 PopularSitesInternalsUI::~PopularSitesInternalsUI() {} 102 PopularSitesInternalsUI::~PopularSitesInternalsUI() {}
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/physical_web_ui.cc ('k') | ios/chrome/browser/ui/webui/sync_internals/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698