mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision d7d5682a (#367535)
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#include "libcef/browser/extensions/pdf_extension_util.h"
|
||||
|
||||
#include "base/strings/string_util.h"
|
||||
#include "chrome/common/chrome_switches.h"
|
||||
#include "grit/cef_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
|
||||
|
||||
@@ -43,10 +36,6 @@ std::string GetManifest() {
|
||||
base::ReplaceFirstSubstringAfterOffset(
|
||||
&manifest_contents, 0, kNameTag, 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user