Hi every one,
Could you help me access prefs in wWinMain.
My code (chrome\app\chrome_exe_main_win.cc)
:#include "components/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
....
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev, wchar_t*, int) {
...
const std::string test1 = ProfileManager::GetActiveUserProfile()->GetPrefs()->GetString("test.prefs_1");
...
}
Error:
lld-link: error: undefined symbol: public: static class Profile * __cdecl ProfileManager::GetActiveUserProfile(void)
>>> referenced by .\..\..\chrome\app\chrome_exe_main_win.cc:309
>>> obj/chrome/chrome_initial/chrome_exe_main_win.obj:(wWinMain)
Thank!