| Index: chrome/browser/drive/drive_api_util.cc
|
| diff --git a/chrome/browser/drive/drive_api_util.cc b/chrome/browser/drive/drive_api_util.cc
|
| index 2a3dbd414626a1665a4fe6c30e3f61029014901b..42fb0cb953881ce02eca48db4c81cb7e80e63e3b 100644
|
| --- a/chrome/browser/drive/drive_api_util.cc
|
| +++ b/chrome/browser/drive/drive_api_util.cc
|
| @@ -368,7 +368,8 @@ bool IsHostedDocument(const std::string& mime_type) {
|
| return false;
|
| }
|
|
|
| -bool IsHostedDocumentByExtension(const std::string& extension) {
|
| +bool HasHostedDocumentExtension(const base::FilePath& path) {
|
| + const std::string extension = base::FilePath(path.Extension()).AsUTF8Unsafe();
|
| for (size_t i = 0; i < arraysize(kHostedDocumentKinds); ++i) {
|
| if (extension == kHostedDocumentKinds[i].extension)
|
| return true;
|
|
|