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

Issue 10909124: Improves application state persistance. (Closed)

Created:
8 years, 3 months ago by Robert Toscano
Modified:
8 years, 3 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Simplifies sticky settings code. Now only file name (for save as PDF) and "AppState" are persisted. Persistence happens immediately when values change. AppState is a string generated by the print preview JS that contains data to persist. Also removes the print settings reset experiment flag. Makes use of native layer changes in javascript. Adds AppState object in javascript layer that manages persistance of print preview. Fixes small bug where UMA stats for print preview destination search widget weren't getting recorded. BUG=146476, 136926, 138625 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156432

Patch Set 1 #

Patch Set 2 : Small fix of data type. #

Patch Set 3 : Merges abodenha@'s changes to native layer. #

Patch Set 4 : Merge with trunk. #

Patch Set 5 : Updates unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -670 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
A chrome/browser/resources/print_preview/data/app_state.js View 1 2 1 chunk +307 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 8 chunks +42 lines, -24 lines 0 comments Download
M chrome/browser/resources/print_preview/data/margins.js View 1 2 3 chunks +32 lines, -4 lines 0 comments Download
M chrome/browser/resources/print_preview/data/print_ticket_store.js View 1 2 13 chunks +32 lines, -20 lines 0 comments Download
M chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/metrics.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 8 chunks +17 lines, -135 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 5 chunks +23 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.h View 1 2 2 chunks +3 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 9 chunks +26 lines, -40 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler_unittest.cc View 1 2 4 chunks +0 lines, -143 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/sticky_settings.h View 1 2 3 chunks +4 lines, -49 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/sticky_settings.cc View 1 2 4 chunks +11 lines, -150 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 6 chunks +54 lines, -52 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Robert Toscano
8 years, 3 months ago (2012-09-07 19:18:29 UTC) #1
Albert Bodenhamer
What happens if the previously used printer is not available? I didn't see any handling ...
8 years, 3 months ago (2012-09-07 20:09:36 UTC) #2
Robert Toscano
You can see in the AppState.init method. It will just have null for selectedDestinationId. You ...
8 years, 3 months ago (2012-09-07 20:11:55 UTC) #3
Robert Toscano
Lei, can you approve chrome flag changes under chrome/common?
8 years, 3 months ago (2012-09-12 00:58:53 UTC) #4
Lei Zhang
Always happy to lgtm flag removals in chrome/common.
8 years, 3 months ago (2012-09-12 01:01:08 UTC) #5
Albert Bodenhamer
lgtm
8 years, 3 months ago (2012-09-12 17:33:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10909124/6001
8 years, 3 months ago (2012-09-12 17:37:29 UTC) #7
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/webui/print_preview/print_preview_handler.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/print_preview/print_preview_handler.cc ...
8 years, 3 months ago (2012-09-12 17:37:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10909124/7019
8 years, 3 months ago (2012-09-12 17:42:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10909124/11003
8 years, 3 months ago (2012-09-12 21:18:12 UTC) #10
commit-bot: I haz the power
8 years, 3 months ago (2012-09-13 00:06:24 UTC) #11
Change committed as 156432

Powered by Google App Engine
This is Rietveld 408576698