summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-01 01:00:58 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-01 01:00:58 +0000
commit9b21c6bd0ccbf66e556f250d7b09dd7fd3c1e60c (patch)
tree5ed53bd015c28fdd15aff5d7341372e60664f164 /pdf
parentc618c9202c0a66a887e785d65e43afe5ff91fdd0 (diff)
downloadchromium_src-9b21c6bd0ccbf66e556f250d7b09dd7fd3c1e60c.zip
chromium_src-9b21c6bd0ccbf66e556f250d7b09dd7fd3c1e60c.tar.gz
chromium_src-9b21c6bd0ccbf66e556f250d7b09dd7fd3c1e60c.tar.bz2
Remove OS_NACL #ifdefs in pdf/
There are some OS_NACL ifdefs in pdf/{instance.cc/out_of_process_instance.cc}. I assume these are from long ago when we tried to get PDF running in NaCl but I believe that at present many more changes would be required to get it running in NaCl again so we might as well remove these. Review URL: https://codereview.chromium.org/424763008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'pdf')
-rw-r--r--pdf/instance.cc4
-rw-r--r--pdf/out_of_process_instance.cc4
2 files changed, 0 insertions, 8 deletions
diff --git a/pdf/instance.cc b/pdf/instance.cc
index c796cd5..0ba1e66 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -2323,9 +2323,6 @@ pp::URLLoader Instance::CreateURLLoaderInternal() {
}
int Instance::GetInitialPage(const std::string& url) {
-#if defined(OS_NACL)
- return -1;
-#else
size_t found_idx = url.find('#');
if (found_idx == std::string::npos)
return -1;
@@ -2366,7 +2363,6 @@ int Instance::GetInitialPage(const std::string& url) {
}
}
return page;
-#endif
}
void Instance::UpdateToolbarPosition(bool invalidate) {
diff --git a/pdf/out_of_process_instance.cc b/pdf/out_of_process_instance.cc
index bd3b70f..d1fd417 100644
--- a/pdf/out_of_process_instance.cc
+++ b/pdf/out_of_process_instance.cc
@@ -1305,9 +1305,6 @@ pp::URLLoader OutOfProcessInstance::CreateURLLoaderInternal() {
}
int OutOfProcessInstance::GetInitialPage(const std::string& url) {
-#if defined(OS_NACL)
- return -1;
-#else
size_t found_idx = url.find('#');
if (found_idx == std::string::npos)
return -1;
@@ -1348,7 +1345,6 @@ int OutOfProcessInstance::GetInitialPage(const std::string& url) {
}
}
return page;
-#endif
}
void OutOfProcessInstance::SetZoom(double scale) {