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

Side by Side Diff: chrome/browser/ui/webui/extensions/extensions_ui.cc

Issue 2931243002: Unframe chrome://extensions as it's the last (and only) uber item (Closed)
Patch Set: policy_android.css Created 3 years, 6 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 (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/extensions/extensions_ui.h" 5 #include "chrome/browser/ui/webui/extensions/extensions_ui.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 source->AddResourcePath("strings.html", IDR_MD_EXTENSIONS_STRINGS_HTML); 303 source->AddResourcePath("strings.html", IDR_MD_EXTENSIONS_STRINGS_HTML);
304 source->AddResourcePath("toolbar.html", IDR_MD_EXTENSIONS_TOOLBAR_HTML); 304 source->AddResourcePath("toolbar.html", IDR_MD_EXTENSIONS_TOOLBAR_HTML);
305 source->AddResourcePath("toolbar.js", IDR_MD_EXTENSIONS_TOOLBAR_JS); 305 source->AddResourcePath("toolbar.js", IDR_MD_EXTENSIONS_TOOLBAR_JS);
306 source->SetDefaultResource(IDR_MD_EXTENSIONS_EXTENSIONS_HTML); 306 source->SetDefaultResource(IDR_MD_EXTENSIONS_EXTENSIONS_HTML);
307 307
308 return source; 308 return source;
309 } 309 }
310 310
311 content::WebUIDataSource* CreateExtensionsHTMLSource() { 311 content::WebUIDataSource* CreateExtensionsHTMLSource() {
312 content::WebUIDataSource* source = 312 content::WebUIDataSource* source =
313 content::WebUIDataSource::Create(chrome::kChromeUIExtensionsFrameHost); 313 content::WebUIDataSource::Create(chrome::kChromeUIExtensionsHost);
314 314
315 source->SetJsonPath("strings.js"); 315 source->SetJsonPath("strings.js");
316 source->AddResourcePath("extensions.js", IDR_EXTENSIONS_JS); 316 source->AddResourcePath("extensions.js", IDR_EXTENSIONS_JS);
317 source->AddResourcePath("extension_command_list.js", 317 source->AddResourcePath("extension_command_list.js",
318 IDR_EXTENSION_COMMAND_LIST_JS); 318 IDR_EXTENSION_COMMAND_LIST_JS);
319 source->AddResourcePath("extension_list.js", IDR_EXTENSION_LIST_JS); 319 source->AddResourcePath("extension_list.js", IDR_EXTENSION_LIST_JS);
320 source->SetDefaultResource(IDR_EXTENSIONS_HTML); 320 source->SetDefaultResource(IDR_EXTENSIONS_HTML);
321 source->DisableDenyXFrameOptions(); 321 source->DisableDenyXFrameOptions();
322 return source; 322 return source;
323 } 323 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 ExtensionsUI::~ExtensionsUI() {} 384 ExtensionsUI::~ExtensionsUI() {}
385 385
386 // static 386 // static
387 base::RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes( 387 base::RefCountedMemory* ExtensionsUI::GetFaviconResourceBytes(
388 ui::ScaleFactor scale_factor) { 388 ui::ScaleFactor scale_factor) {
389 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 389 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
390 return rb.LoadDataResourceBytesForScale(IDR_EXTENSIONS_FAVICON, scale_factor); 390 return rb.LoadDataResourceBytesForScale(IDR_EXTENSIONS_FAVICON, scale_factor);
391 } 391 }
392 392
393 } // namespace extensions 393 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_browsertest.js ('k') | chrome/browser/ui/webui/help/help_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698