Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Issue 340023: Fix window restore behaviour on Mac. (Closed)

Created:
11 years, 1 month ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix window restore behaviour on Mac. On the mac, there can be no windows, but the application is sitll open. This confused "Restore the pages that were open last" so that it would restore when opening a new window. BUG=13341 TEST=Open chromium. Set On Startup to "Restore the pages that were open last". Open a few tabs. Close the window (but not chromium). Click the dock icon. The tabs shouldn't be restored. But if you quit chrome and start again, things should reopen. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30463

Patch Set 1 #

Patch Set 2 : Do the right thing instead of ifdef stuff out. #

Patch Set 3 : Missing file #

Total comments: 2

Patch Set 4 : Fix namespace naming #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
A chrome/browser/app_controller_cppsafe_mac.h View 3 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 2 3 4 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/sessions/session_service.cc View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Elliot Glaysher
Scott, I'm pretty sure you can tell me if this is the right approach or ...
11 years, 1 month ago (2009-10-28 21:25:56 UTC) #1
sky
This code is hit with app windows or popups. For app windows we want to ...
11 years, 1 month ago (2009-10-28 21:48:27 UTC) #2
Elliot Glaysher
Application support has been punted entirely for beta. Can I just ifdef this out on ...
11 years, 1 month ago (2009-10-28 21:57:08 UTC) #3
sky
You should ifdef out the whole if starting on line 412. I think you're going ...
11 years, 1 month ago (2009-10-28 22:27:05 UTC) #4
Elliot Glaysher
On 2009/10/28 22:27:05, sky wrote: > You should ifdef out the whole if starting on ...
11 years, 1 month ago (2009-10-28 23:14:13 UTC) #5
sky
http://codereview.chromium.org/340023/diff/4005/4006 File chrome/browser/app_controller_cppsafe_mac.h (right): http://codereview.chromium.org/340023/diff/4005/4006#newcode10 Line 10: namespace MacAppController { Namespaces should be lower case ...
11 years, 1 month ago (2009-10-28 23:28:11 UTC) #6
Elliot Glaysher
Done.
11 years, 1 month ago (2009-10-28 23:49:05 UTC) #7
sky
11 years, 1 month ago (2009-10-28 23:52:11 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698