[SOLVED] - How to Disable the message "Google Chrome didn't shut down correctly. To reopen the pages you had open, click Restore."




How to Disable the message "Google Chrome didn't shut down correctly. To reopen the pages you had open, click Restore."


Why this happens?


Many people having this problem but not yet a working solution found anywhere,so i came up with mine. because of power failure, Chrome shutting down automatically along with the operating system, whichever os it is, Windows X P or Windows 7, Next time when we open the chrome browser, it shows up the warning message and if we click on Restore button once, all tabs will open again as in the previous state, keeping all cookie information in it, and No cached items. All the cookies are deleted only if we click on close button of the same warning bar.

Its a Security problem sometimes if you are using a public computer rather than a personal computer, if there is a power failure for long time and if we leave it like that, next time another one can easily access sites we had opened last time without even entering a password for that sites.

What is the solution to disable this warning message?

Solution 1:

Try using google chrome in incognito mode.(Using this, you will not able to make use of caching files or saving history. )
to use chrome in incogninto mode, open google chrome, Press Ctrl+shift+N  and it will open chrome in incognito mode.
If you want chrome to open in incognito mode everytime(Better for public computers), you can right click on chrome shortcut on desktop and change the "Target" to 

"C:\Program Files\Google\Chrome\Application\chrome.exe" --incognito




Solution 2:

Use something like Deep Freeze.
Deep Freeze is a software to reset your drive after a shutdown whether it is proper or not.
But its a bad habit to do that thing because it will affect all system and all data will be lost after restart.
So i came up with a simple solution.


Solution  3:

Before trying this out, Don't forget to make backups for files that you going to edit.
Close Google Chrome! <- data-blogger-escaped-i="">important
.Go to Google Chrome's default user data folder.

In Windows

Open Explorer by pressing Windows key + E
In Address bar Copy paste below address as it suits your operating system.

Windows XP :
 %USERPROFILE%\Local Settings\Application Data\Google\Chrome\User Data\Default\

Windows Vista/ Windows 7/ Windows 8:  
%LOCALAPPDATA%\Google\Chrome\User Data\Default\

Mac OS X:  
~/Library/Application Support/Google/Chrome/Default

Linux: 
~/.config/google-chrome/Default



Find a file named "preferences". and open with a notepad. (Open notepad first and drag the file to opened notepad).

Find below line in that preferences file. (Press Ctrl+F and Search for "Exited").

"exited_cleanly": true,

This tells the browser, Browser was exited in  proper way last time.
If it is "exited_cleanly": false,

This tells the browser, Browser was exited not in  proper way last time.
Change it to "true".

Just before that, add following line.
"exit_type": "None",

Now that part might be like this.

},

      "exit_type": "None",

      "exited_cleanly": true,

      "name": "First user"

   },


You are almost done, but wait. now we shouldn't allow browser to change the values we entered as long we wish. (Please note that it will be affected other preferences too,i don't care, i just want to disable the warning message,).

So, Right click the "preferences" file, and tick "Read only" option.

Click apply, OK.

It will not affect history saving, or bookmarking. but will do affect some of preference overwriting.

That's all. From now, there will no Error message popping up saying Chrome didn't shutdown properly.

Check if it works or not.


To Check Whether it works or not, Open Chrome browser, Open two or more websites.
Open task manager, In Tasks tab, Right click and Select "End process tree" option till Chrome browser closed.

Wait two seconds, open Chrome again, If everything is done well, There will be no error message sayings that Chrome Didn't shutdown properly.

Let know if this worked for you,tell through comments!
If you face this problem again, feel free to discuss through Comments :)


UPDATE : As of the Version 26.0.1410.64 m release of Google Chrome browser, Chrome Application has moved to Program files folder, but still we will be able to do this trick because Preferences file is located at where it was before.


Read Article →

How to create a Google Chrome extention - simple tutorial With Screenshots and examples



So, you want to create a google chrome chrome Extension! here we go.
As we all know , google chrome is the leading web browser in world, because of its modern rendering features and speed.
Extensions are programs that we can add to google chrome utilizing its features.
There are many extensions out there in web store of google chrome, sometimes we wonder that how they build.
Actually its is easy like anything even if you don't have any programming skills or webdesign or web development knowledge.
All you have to do is read this article and follow instructions on how to build a Chrome extension in easy steps.

If you are a beginner, lets begin with a hello world program,
which adds a extension icon to Chrome's toolbar and when we click on it, it will show a hello world writing just like in the figure below.



So here we start:

1  Create a folder on your desktop (or elsewhere) and name it "Hello World" .


2 Open your Text editor(Notepad or which you prefer) and Copy below code into that and save it as "Manifest.json" (Note that the extension should .json and not .json.txt, i was confused first about this when i started developing one.)


{
  "manifest_version": 2,   "name": "Hello World",   "description": "Your Description about Extension goes here",   "version": "1.0",   "browser_action": {     "default_icon": "icon.png",     "default_popup": "popup.html"   } }

All the codes are self explanatory.

  • We should include " "manifest_version": 2," in every extension else it wont work.
  • "name" in this code means our extensions name is equal to Hello World.
  • "Description" is the description for our chrome extension.
  • version is the version number of our extension.
  • browser action is where we call browser to do something and this is where the core of our extension.
  • browser action > "default_icon" is for our icon for the extension.
  • browser action > "default_popup" is for the popup html where the our program includes.


3 After Copying the above code to manifest json file and saving, now we have to select our icon and copy that to our directory where manifest.json includes.
Here is an icon for demo purpose. right click on it and select save as icon.png . (Be sure that your icon has the same name as you wrote in manifest.json file.)



4 Now create a hello file named popup.html in same directory.and write "hello world" in that file. (open text editor, write "hello world", save as popup.html)
Now we have all the resources for our hello world extension in that hello world directory.


Okay, lets come into action.

Open Chrome extensions page.
To do so, just copy paste this line to chrome's address bar
chrome://extensions/ Or
Click on settings button on top right side of browser.
select tools -> extensions

It will open up Extension's page.


Now tick on Developer mode
It will show you advanced controls



Click on Load Unpacked Extension button.
Browse for your hello world directory and click ok.


Haven't you noticed that there is an icon appeared on chrome toolbar?just like in the figure below.if its not, Dont worry, start again.


Yup, you have made your first chrome extension from scratch!



you may be thinking This is so simple , if you do, it is the time to go ahead and change contents of your popup.html file and experiment with it.

Hope this tutorial helps you!

Read Article →