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

Unified Diff: chrome/browser/pdf/pdf_extension_util.cc

Issue 1521913002: PDF: Delete non-material viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/pdf/pdf_extension_util.cc
diff --git a/chrome/browser/pdf/pdf_extension_util.cc b/chrome/browser/pdf/pdf_extension_util.cc
index 1987a6851db45af9356f5311ec5f0dfd3e6119c0..774bdcf17c692ba60d55974eb7d547f4ce9ca2fb 100644
--- a/chrome/browser/pdf/pdf_extension_util.cc
+++ b/chrome/browser/pdf/pdf_extension_util.cc
@@ -6,7 +6,6 @@
#include "base/strings/string_util.h"
#include "chrome/common/chrome_content_client.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/grit/browser_resources.h"
#include "ui/base/resource/resource_bundle.h"
@@ -16,12 +15,6 @@ namespace {
// Tags in the manifest to be replaced.
const char kNameTag[] = "<NAME>";
-const char kIndexTag[] = "<INDEX>";
-
-// The index html pages to load for the material and non-material version of
-// the viewer.
-const char kRegularIndex[] = "index.html";
-const char kMaterialIndex[] = "index-material.html";
} // namespace
@@ -41,10 +34,6 @@ std::string GetManifest() {
base::ReplaceFirstSubstringAfterOffset(
&manifest_contents, 0, kNameTag, ChromeContentClient::kPDFPluginName);
- DCHECK(manifest_contents.find(kIndexTag) != std::string::npos);
- std::string index = switches::PdfMaterialUIEnabled() ?
- kMaterialIndex : kRegularIndex;
- base::ReplaceSubstringsAfterOffset(&manifest_contents, 0, kIndexTag, index);
return manifest_contents;
}
« no previous file with comments | « chrome/browser/pdf/pdf_extension_test.cc ('k') | chrome/browser/resources/component_extension_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698