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

Unified Diff: chrome/browser/drive/drive_app_registry.cc

Issue 130753002: Move DriveAppRegistry from c/b/chromeos/drive to c/b/drive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for Windows compilation Created 6 years, 11 months 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
« no previous file with comments | « chrome/browser/drive/drive_app_registry.h ('k') | chrome/browser/drive/drive_app_registry_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_app_registry.cc
diff --git a/chrome/browser/chromeos/drive/drive_app_registry.cc b/chrome/browser/drive/drive_app_registry.cc
similarity index 97%
rename from chrome/browser/chromeos/drive/drive_app_registry.cc
rename to chrome/browser/drive/drive_app_registry.cc
index 4043edd406239f412960b6edb9680948f4be6847..869229b49feff71181c9f4fb080cb145120bf96f 100644
--- a/chrome/browser/chromeos/drive/drive_app_registry.cc
+++ b/chrome/browser/drive/drive_app_registry.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/drive/drive_app_registry.h"
+#include "chrome/browser/drive/drive_app_registry.h"
#include <algorithm>
#include <set>
@@ -75,7 +75,8 @@ void DriveAppRegistry::GetAppsForFile(
std::vector<std::string> matched_apps;
if (!file_extension.empty()) {
- const base::FilePath::StringType without_dot = file_extension.substr(1);
+ const base::FilePath::StringType without_dot =
hashimoto 2014/01/09 05:30:14 |without_dot| shouldn't be a std::string?
kinaba 2014/01/09 05:39:56 Ugg, Right.
+ base::FilePath(file_extension.substr(1)).AsUTF8Unsafe();
FindAppsForSelector(without_dot, extension_map_, &matched_apps);
}
if (!mime_type.empty())
« no previous file with comments | « chrome/browser/drive/drive_app_registry.h ('k') | chrome/browser/drive/drive_app_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698