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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10828086: File Manager: fix an unsafe const reference (intermittent crash). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index b4f46d81609fc82c7505cdb0bdef08e49fcf14e3..1fa6ae3a1e35f2300183ff6697062d11b8bf967a 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -1152,7 +1152,7 @@ void AddMountFunction::GetLocalPathsResponseOnUIThread(
}
const FilePath& source_path = files[0].local_path;
- const FilePath::StringType& display_name =
+ const FilePath::StringType display_name =
files[0].file_path.BaseName().value();
tbarzic 2012/07/31 01:00:25 yeah, this is my fault.. I forgot to undo some exp
hshi1 2012/07/31 01:04:41 Ah I see so it IS a regression after all... would
// Check if the source path is under GData cache directory.
gdata::GDataSystemService* system_service =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698