Increasing the local storage

5,132 views
Skip to first unread message

mojo

unread,
Feb 4, 2013, 10:55:48 AM2/4/13
to chromiu...@chromium.org
All,

I have a framework wherein i am launching a different applications in different IFrames. All the applications are consuming lots of local storage data because of which Quota exceeded error is thrown for the "later opened application".I can not use the crx for the apps so ,i guess, what i have to do is to increase the quota size at the browser level only. i have to use the application locally only so changing the browser would do the trick.

detail:
chromium : 22
Ubuntu : 12.10

Any idea/suggestion?

Thank you.

Joao da Silva

unread,
Feb 4, 2013, 11:17:00 AM2/4/13
to mojo, Chromium HTML5
Edit chrome/common/extensions/api/storage.json, change the "local" QUOTA_BYTES value, and rebuild chrome.

- Joao


--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-html5/-/rpdc_RrYrTkJ.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.

PhistucK

unread,
Feb 9, 2013, 5:52:50 AM2/9/13
to Joao da Silva, mojo, Chromium HTML5
But the purpose of that file seems to be for the chrome.storage extension API, I think the original poster means the localStorage API and specifically mentions not using CRX.

PhistucK

mojo

unread,
Feb 11, 2013, 7:27:43 AM2/11/13
to chromiu...@chromium.org, Joao da Silva, mojo
Yes,you are right PhistucK. My intent was to provide the extra memory to application without taking the recourse to chrome extension?
So are you suggesting that i can't increase the localstorage if my application is run outside the realm of crx?

Mojo 

PhistucK

unread,
Feb 11, 2013, 7:36:56 AM2/11/13
to mojo, chromiu...@chromium.org, Joao da Silva
You can do whatever you want when you compile Chromium by yourself. ;)

However, if you do not want to compile it by yourself, I think you can use other storage options, like FileSystem or IndexedDB that do have storage increasing mechanism, if I am not mistaking, using webkitStorageInfo (JavaScript, that is).

window.webkitStorageInfo.requestQuota( 
            window.PERSISTENT,
            500000,
            function( bytes ) {
                alert( "Quota is available: " + bytes );
            },
            function( e ) {
                alert( "Error allocating quota: " + e );
            });

PhistucK


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

To post to this group, send email to chromiu...@chromium.org.
Reply all
Reply to author
Forward
0 new messages