address review comments
This commit is contained in:
parent
6cb626db88
commit
671a8a2cd6
2 changed files with 2 additions and 2 deletions
|
@ -132,7 +132,7 @@ void PdfViewerHandler::GetStrings(const base::ListValue* args) {
|
|||
CHECK(args->Get(0, &callback_id));
|
||||
|
||||
std::unique_ptr<base::DictionaryValue> result(new base::DictionaryValue);
|
||||
// TODO(deepak1556): Generate strings from componenets/pdf_strings.grdp.
|
||||
// TODO(deepak1556): Generate strings from components/pdf_strings.grdp.
|
||||
#define SET_STRING(id, resource) result->SetString(id, resource)
|
||||
SET_STRING("passwordPrompt",
|
||||
"This document is password protected. Please enter a password.");
|
||||
|
|
|
@ -48,7 +48,7 @@ class BundledDataSource : public content::URLDataSource {
|
|||
int render_frame_id,
|
||||
const GotDataCallback& callback) override {
|
||||
std::string filename = PathWithoutParams(path);
|
||||
std::map<base::FilePath, int>::const_iterator entry =
|
||||
auto entry =
|
||||
path_to_resource_id_.find(base::FilePath::FromUTF8Unsafe(filename));
|
||||
|
||||
if (entry != path_to_resource_id_.end()) {
|
||||
|
|
Loading…
Reference in a new issue