browserchooser 0.0.2
A simple browser chooser.
Loading...
Searching...
No Matches
chromeprofile.h File Reference
#include <QtCore/QString>
Include dependency graph for chromeprofile.h:

Go to the source code of this file.

Functions

QString getChromeProfileDisplayNameFromUserDataDir (const QString &userDataDir, const QString &profileId)
QString getChromeProfilePicturePathFromUserDataDir (const QString &userDataDir, const QString &profileId)

Function Documentation

◆ getChromeProfileDisplayNameFromUserDataDir()

QString getChromeProfileDisplayNameFromUserDataDir ( const QString & userDataDir,
const QString & profileId )
nodiscard

Reads the Chrome/Chromium user data dir "Local State" and returns the profile display name for the given profile ID. Same JSON structure on all platforms.

Parameters
userDataDirPath to the user data dir (contains "Local State").
profileIdProfile ID (e.g. "Default", "Profile 1"); empty means Default.
Returns
Display name for the profile, or empty if not found or file invalid.

◆ getChromeProfilePicturePathFromUserDataDir()

QString getChromeProfilePicturePathFromUserDataDir ( const QString & userDataDir,
const QString & profileId )
nodiscard

Reads the Chrome/Chromium user data dir "Local State" and returns the full path to the profile picture file (gaia_picture_file_name in profile info_cache).

Parameters
userDataDirPath to the user data dir (contains "Local State").
profileIdProfile ID (e.g. "Default", "Profile 1"); empty means Default.
Returns
Full path to the picture file, or empty if not found or file invalid.