How does Chrome load unpacked extensions automatically, even after restarting it?

767 views
Skip to first unread message

Dattatreya Mohapatra

unread,
Oct 13, 2016, 9:23:29 AM10/13/16
to Chromium-Extensions-Announce
It must be saving the location of the source of that unpacked extension, so that it can load it automatically at start-up. I want to know where in the userdata directory does Chrome store this information?

By "unpacked extensions", I mean those which you can load from their source directory in developer mode.

Consider this situation:
Suppose I am developing an extension. I loaded that unpacked extension, and then closed chrome. When I start chrome again, I see that the unpacked extension is already loaded automatically. I close chrome again. I change the rename the directory of the source of the extension to something else. Now, I start chrome again. I see that I can't launch that extension anymore.

This means that Chrome doesn't save the source files that extension in its own storage area. Because if it were so, renaming the directory containing the source files of extension wouldn't have had any effect. This is actually true as I looked for this extension in C:\Users\Dattatreya Mohapatra\AppData\Local\Google\Chrome\User Data\Default\Extensions and couldn't find it.

I think that chrome just saves the location of source files of that extension somewhere in its storage area. If I am right about this, I want to know where exactly does it save that information. And if I am wrong, I want to know how does then chrome load that extension automatically.

I had asked this question in Chrome Help Forum earlier. This is the reply I got.

Thanks.

PhistucK

unread,
Oct 13, 2016, 12:13:45 PM10/13/16
to Dattatreya Mohapatra, Chromium-Extensions-Announce
It just stores the manifest, if I recall correctly.
It is in the Preferences file (it is a whitespace-removed JSON file) of the user profile directory.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/2eaf0e9a-479a-46c2-b008-1d51ec00c273%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Dattatreya Mohapatra

unread,
Oct 13, 2016, 12:33:45 PM10/13/16
to PhistucK, chromium-...@chromium.org
Hey,

I can't find anything related to the extension in the Preferences file. The closest thing it contains is the ids of the downloaded extensions. I can't find their manifest either. Can you guide me a bit further?

Thanks,
Dattatreya Mohapatra




On Thu, Oct 13, 2016 at 9:42 PM, PhistucK <phis...@gmail.com> wrote:
It just stores the manifest, if I recall correctly.
It is in the Preferences file (it is a whitespace-removed JSON file) of the user profile directory.


PhistucK

On Thu, Oct 13, 2016 at 4:23 PM, Dattatreya Mohapatra <dattatr...@iiitd.ac.in> wrote:
It must be saving the location of the source of that unpacked extension, so that it can load it automatically at start-up. I want to know where in the userdata directory does Chrome store this information?

By "unpacked extensions", I mean those which you can load from their source directory in developer mode.

Consider this situation:
Suppose I am developing an extension. I loaded that unpacked extension, and then closed chrome. When I start chrome again, I see that the unpacked extension is already loaded automatically. I close chrome again. I change the rename the directory of the source of the extension to something else. Now, I start chrome again. I see that I can't launch that extension anymore.

This means that Chrome doesn't save the source files that extension in its own storage area. Because if it were so, renaming the directory containing the source files of extension wouldn't have had any effect. This is actually true as I looked for this extension in C:\Users\Dattatreya Mohapatra\AppData\Local\Google\Chrome\User Data\Default\Extensions and couldn't find it.

I think that chrome just saves the location of source files of that extension somewhere in its storage area. If I am right about this, I want to know where exactly does it save that information. And if I am wrong, I want to know how does then chrome load that extension automatically.

I had asked this question in Chrome Help Forum earlier. This is the reply I got.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.

PhistucK

unread,
Oct 13, 2016, 12:48:25 PM10/13/16
to Dattatreya Mohapatra, Chromium-extensions
Sorry, check the Secure Preferences file instead.


PhistucK

Dattatreya Mohapatra

unread,
Oct 13, 2016, 1:08:17 PM10/13/16
to PhistucK, Chromium-extensions
Thanks. I found what I needed in that file.


Naqushab Neyazee

unread,
Jan 31, 2017, 1:49:11 PM1/31/17
to Chromium-Extensions-Announce, dattatr...@iiitd.ac.in
Hi PhistucK,

Can you tell the difference between the two? When each Preference file is modified?

Thanks!


On Thursday, October 13, 2016 at 10:18:25 PM UTC+5:30, PhistucK wrote:
Sorry, check the Secure Preferences file instead.


PhistucK

On Thu, Oct 13, 2016 at 7:32 PM, Dattatreya Mohapatra <dattatr...@iiitd.ac.in> wrote:
Hey,

I can't find anything related to the extension in the Preferences file. The closest thing it contains is the ids of the downloaded extensions. I can't find their manifest either. Can you guide me a bit further?

Thanks,
Dattatreya Mohapatra



On Thu, Oct 13, 2016 at 9:42 PM, PhistucK <phis...@gmail.com> wrote:
It just stores the manifest, if I recall correctly.
It is in the Preferences file (it is a whitespace-removed JSON file) of the user profile directory.


PhistucK

On Thu, Oct 13, 2016 at 4:23 PM, Dattatreya Mohapatra <dattatr...@iiitd.ac.in> wrote:
It must be saving the location of the source of that unpacked extension, so that it can load it automatically at start-up. I want to know where in the userdata directory does Chrome store this information?

By "unpacked extensions", I mean those which you can load from their source directory in developer mode.

Consider this situation:
Suppose I am developing an extension. I loaded that unpacked extension, and then closed chrome. When I start chrome again, I see that the unpacked extension is already loaded automatically. I close chrome again. I change the rename the directory of the source of the extension to something else. Now, I start chrome again. I see that I can't launch that extension anymore.

This means that Chrome doesn't save the source files that extension in its own storage area. Because if it were so, renaming the directory containing the source files of extension wouldn't have had any effect. This is actually true as I looked for this extension in C:\Users\Dattatreya Mohapatra\AppData\Local\Google\Chrome\User Data\Default\Extensions and couldn't find it.

I think that chrome just saves the location of source files of that extension somewhere in its storage area. If I am right about this, I want to know where exactly does it save that information. And if I am wrong, I want to know how does then chrome load that extension automatically.

I had asked this question in Chrome Help Forum earlier. This is the reply I got.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.

PhistucK

unread,
Jan 31, 2017, 1:54:16 PM1/31/17
to Naqushab Neyazee, Chromium-Extensions-Announce, Dattatreya Mohapatra
I am not sure exactly. I guess it is either of those -
- Preferences is just the remains of the old preferences file.
- Preferences has less user-affecting preferences, while Secure Preferences keeps extensions, startup pages and other things that are more likely to be abused by malware.


PhistucK



PhistucK



PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.

Naqushab Neyazee

unread,
Jan 31, 2017, 1:58:54 PM1/31/17
to Chromium-Extensions-Announce, nnaq...@gmail.com, dattatr...@iiitd.ac.in
Do you any documentation regarding this? I might be helpful for me.

Best Regards!

PhistucK

unread,
Jan 31, 2017, 4:59:04 PM1/31/17
to Naqushab Neyazee, Chromium-Extensions-Announce, Dattatreya Mohapatra
If I did, I would probably know more. :)
cs.chromium.org can help you search the code quickly and you may find out.


PhistucK

On Tue, Jan 31, 2017 at 8:58 PM, Naqushab Neyazee <nnaq...@gmail.com> wrote:
Do you any documentation regarding this? I might be helpful for me.

Best Regards!

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

Naqushab Neyazee

unread,
Jan 31, 2017, 5:42:29 PM1/31/17
to PhistucK, Dattatreya Mohapatra, Chromium-Extensions-Announce
Thanks. :) 

On 1 Feb 2017 3:28 am, "PhistucK" <phis...@gmail.com> wrote:
If I did, I would probably know more. :)
cs.chromium.org can help you search the code quickly and you may find out.


PhistucK

On Tue, Jan 31, 2017 at 8:58 PM, Naqushab Neyazee <nnaq...@gmail.com> wrote:
Do you any documentation regarding this? I might be helpful for me.

Best Regards!

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.
Reply all
Reply to author
Forward
0 new messages