Suppress tabs permission warning if there is already a browsingHistory warning.
[chromium-blink-merge.git] / chrome / common / importer / firefox_importer_utils_linux.cc
blob71f1a267a2796b640fe117ed8cc3bc12029a16ec
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/common/importer/firefox_importer_utils.h"
7 #include "base/file_util.h"
9 base::FilePath GetProfilesINI() {
10 base::FilePath ini_file;
11 // The default location of the profile folder containing user data is
12 // under user HOME directory in .mozilla/firefox folder on Linux.
13 base::FilePath home = base::GetHomeDir();
14 if (!home.empty()) {
15 ini_file = home.Append(".mozilla/firefox/profiles.ini");
17 if (base::PathExists(ini_file))
18 return ini_file;
20 return base::FilePath();