Commit 90ed4e50 authored by Denis Yaroshevskiy's avatar Denis Yaroshevskiy Committed by Commit Bot

Removing unused function.

This function is never called. If there is ever a need to do this,
chome_paths has a generalized mechanism for overriding file paths.

Change-Id: I0822b22aed510492f88ecc0b4595649aee749583
Reviewed-on: https://chromium-review.googlesource.com/1102466Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Commit-Queue: Denis Yaroshevskiy <dyaroshev@yandex-team.ru>
Cr-Commit-Position: refs/heads/master@{#568773}
parent 31aca9d3
......@@ -69,13 +69,6 @@ bool GetUserVideosDirectory(base::FilePath* result);
// in the .app at Contents/Versions/w.x.y.z.
base::FilePath GetVersionedDirectory();
// This overrides the directory returned by |GetVersionedDirectory()|, to be
// used when |GetVersionedDirectory()| can't automatically determine the proper
// location. This is the case when the browser didn't load itself but by, e.g.,
// the app mode loader. This should be called before |ChromeMain()|. This takes
// ownership of the object |path| and the caller must not delete it.
void SetOverrideVersionedDirectory(const base::FilePath* path);
// Most of the application is further contained within the framework. The
// framework bundle is located within the versioned directory at a specific
// path. The only components in the versioned directory not included in the
......
......@@ -20,8 +20,6 @@
namespace {
const base::FilePath* g_override_versioned_directory = NULL;
// Return a retained (NOT autoreleased) NSBundle* as the internal
// implementation of chrome::OuterAppBundle(), which should be the only
// caller.
......@@ -152,9 +150,6 @@ bool GetUserVideosDirectory(base::FilePath* result) {
}
base::FilePath GetVersionedDirectory() {
if (g_override_versioned_directory)
return *g_override_versioned_directory;
// Start out with the path to the running executable.
base::FilePath path;
base::PathService::Get(base::FILE_EXE, &path);
......@@ -177,13 +172,6 @@ base::FilePath GetVersionedDirectory() {
return path;
}
void SetOverrideVersionedDirectory(const base::FilePath* path) {
if (path != g_override_versioned_directory) {
delete g_override_versioned_directory;
g_override_versioned_directory = path;
}
}
base::FilePath GetFrameworkBundlePath() {
// It's tempting to use +[NSBundle bundleWithIdentifier:], but it's really
// slow (about 30ms on 10.5 and 10.6), despite Apple's documentation stating
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment