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

Unified Diff: chrome/browser/profile.cc

Issue 2101019: Print Preview component extension (Closed)
Patch Set: Put it under a flag Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profile.cc
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 7a34dbcdc5b2140a30b32e3b7ba394485d6eceac..a9f7f75154fc1dbee7c9c2f330d5b18902c7d5fb 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -856,9 +856,12 @@ void ProfileImpl::InitExtensions() {
typedef std::list<std::pair<std::string, int> > ComponentExtensionList;
ComponentExtensionList component_extensions;
- // Bookmark manager.
component_extensions.push_back(
std::make_pair("bookmark_manager", IDR_BOOKMARKS_MANIFEST));
+ if (command_line->HasSwitch(switches::kEnablePrintPreview)) {
+ component_extensions.push_back(
+ std::make_pair("print_preview", IDR_PRINT_PREVIEW_MANIFEST));
+ }
// Some sample apps to make our lives easier while we are developing extension
// apps. This way we don't have to constantly install these over and over.
« no previous file with comments | « chrome/browser/dom_ui/shared_resources_data_source.cc ('k') | chrome/browser/resources/print_preview/js/preview_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698