summaryrefslogtreecommitdiffstats
path: root/base/win
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for the EnumeratesPE base_unittest failures seen on Windows 8 X64. The ↵ananta@chromium.org2012-04-131-2/+10
| | | | | | | | | | | | | values used by this test for sections and import dlls, needed to be changed. These values are different for X86 and X64. BUG=123096 R=cpu Review URL: https://chromiumcodereview.appspot.com/10083011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132278 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes for the EnumeratesPE base_unittest failures seen on Windows 8. The ↵ananta@chromium.org2012-04-121-10/+18
| | | | | | | | | | | | values used by this test for expected imports/exports, etc on Windows 8 needed to be changed. BUG=123096 R=cpu Review URL: https://chromiumcodereview.appspot.com/10065002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132076 0039d316-1c4b-4281-b951-d872f2087c98
* Added an initial version of helper functions for Windows 8 metro to base.ananta@chromium.org2012-04-092-0/+39
| | | | | | | | | | The only function added right now is GetMetroModule which returns the handle to the loaded metro dll if any. BUG=118641 Review URL: https://chromiumcodereview.appspot.com/10006053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131440 0039d316-1c4b-4281-b951-d872f2087c98
* Win 8 Start Menu shortcut changesgab@chromium.org2012-04-062-8/+85
| | | | | | | | | BUG=119242 TEST=Test DualModeApp properties are correctly set in Windows 8 on Start Menu shortcut. Review URL: http://codereview.chromium.org/9837120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131163 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a build break caused by the newly added UIATextProvider accessibility ↵ananta@chromium.org2012-04-041-1/+2
| | | | | | | | | | | | helper class. Fix is to suppress the MSVC warning 4275 BUG=118641 TBR=binji Review URL: https://chromiumcodereview.appspot.com/9979033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130747 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for UIA accessibility interfaces like IAccessibleEx and ↵ananta@chromium.org2012-04-042-0/+126
| | | | | | | | | | | | | | | | | | IRawElementProviderSimple. This is required for the on screen keyboard to show up in Windows 8 metro. At this point we only implement the GetPatternProvider/GetPropertyValue methods in the IRawElementProviderSimple. interface and the rest of the methods in the interfaces are left unimplemented. The GetPatternProvider/GetPropertyValue only handle the case where the user touches an editable portion on the window/page. This ensures that the OSK shows up on the omnibox and the web page. The ITextProvider and IValueProvider implementation is provided by the UIATextProvider class which lives in base/win/accessibility_misc_utils.cc/.h files. BUG=118641 Review URL: https://chromiumcodereview.appspot.com/9958139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130744 0039d316-1c4b-4281-b951-d872f2087c98
* ScopedProcessInformation protects against process/thread handle leaks from ↵erikwright@chromium.org2012-04-043-0/+401
| | | | | | | | | | | | | | | | | CreateProcess calls. This CL includes the definition of the class along with changes to clients of CreateProcess. Please see http://codereview.chromium.org/9959018/ for the most substantial usages I propose introducing. This was motivated by realizing that my previous fix to LaunchProcess actually still had a leak of the thread handle. BUG=None TEST=tests added in base_unittests Review URL: https://chromiumcodereview.appspot.com/9700038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130710 0039d316-1c4b-4281-b951-d872f2087c98
* CHECK that we don't start watching an object with a NULL delegate.dcheng@chromium.org2012-04-031-1/+2
| | | | | | | | | | | | Hopefully this finds the real culprit behind the crash. BUG=121086 TEST=none Review URL: http://codereview.chromium.org/9956071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130378 0039d316-1c4b-4281-b951-d872f2087c98
* [windows] Make calls to exit(), _exit(), abort(), and ExitProcess() from the ↵eroman@chromium.org2012-03-243-4/+29
| | | | | | | | | | | renderer process result in a crash. BUG=118665 Review URL: http://codereview.chromium.org/9803002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128701 0039d316-1c4b-4281-b951-d872f2087c98
* New test infrastructure for producing verbose logs in failing tests.grt@chromium.org2012-03-121-5/+5
| | | | | | | | | | | This infrastructure allows Google Test-based tests to opt-in to some magic that results in extremely verbose logs appearing in test output for only those tests that fail. This includes all LOG() messages generated by chrome.exe, npchrome_frame.exe, and the test executable itself, as well as all TRACE_EVENT_*_ETW events. The interesting entrypoints are in test_log_collector_win.h, file_logger_win.h, and log_file_printer_win.h. BUG=none TEST=none Review URL: http://codereview.chromium.org/9584017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126240 0039d316-1c4b-4281-b951-d872f2087c98
* Making GenericScopedHandle capable of handling handle types other than HANDLE.alexeypa@chromium.org2012-03-051-40/+53
| | | | | | Review URL: http://codereview.chromium.org/9582045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124980 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fix dead code.jhawkins@chromium.org2012-03-041-1/+1
| | | | | | | | | | | | | | |type| was never passed in to ReadValue(). CID_COUNT=1 CID=103427 BUG=none TEST=none R=asvitkine Review URL: https://chromiumcodereview.appspot.com/9601001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124881 0039d316-1c4b-4281-b951-d872f2087c98
* Added ScopedPrinterHandlevitalybuka@chromium.org2012-03-021-7/+22
| | | | | | | | | TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/9480026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124640 0039d316-1c4b-4281-b951-d872f2087c98
* Implement font linking for RenderTextWin.asvitkine@chromium.org2012-02-282-2/+42
| | | | | | | | | | | | | | | | | | | Font linking is needed for East Asian fonts where Windows font fallback doesn't work. This change adds support for font linking by making RenderTextWin read and cache the font link lists from the registry and use these when there are missing glyphs returned from ScriptShape(). BUG=90426, 105550 TEST=Build Chrome on Windows with use_canvas_skia_skia=1. Go to http://www.google.co.jp/shopping?hl=ja. The tab title should correctly display Japanese characters and not boxes. Review URL: https://chromiumcodereview.appspot.com/9429061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123998 0039d316-1c4b-4281-b951-d872f2087c98
* Plug trace session handle leak.grt@chromium.org2012-02-241-3/+2
| | | | | | | | | | BUG=none TEST=none R=siggi@chromium.org,jar@chromium.org Review URL: http://codereview.chromium.org/9464015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123584 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 121840 - Make scoped dc objects smartercpu@chromium.org2012-02-143-271/+45
| | | | | | | | | | | | | | So we don't destroy the dc with gdi objects selected. Also remove implicit conversion to HDC. BUG=110113,113683 TEST=chrome runs, base unittests green. Review URL: https://chromiumcodereview.appspot.com/9212020 TBR=cpu@chromium.org Review URL: https://chromiumcodereview.appspot.com/9387027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121843 0039d316-1c4b-4281-b951-d872f2087c98
* Make scoped dc objects smartercpu@chromium.org2012-02-143-45/+271
| | | | | | | | | | | So we don't destroy the dc with gdi objects selected. Also remove implicit conversion to HDC. BUG=110113,113683 TEST=chrome runs, base unittests green. Review URL: https://chromiumcodereview.appspot.com/9212020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121840 0039d316-1c4b-4281-b951-d872f2087c98
* Make ETW unittests shardable to quench flakyness on trybots.siggi@chromium.org2012-01-282-54/+110
| | | | | | | | | | | | | Use a per-process ETW session name, and a per-test provider GUID to avoid name collisions under test sharding on trybots. R=thakis@chromium.org,jar@chromium.org BUG=111240 TEST=No more spurious failures on trybots. Review URL: http://codereview.chromium.org/9288075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119544 0039d316-1c4b-4281-b951-d872f2087c98
* Add a convenience typedef LazyInstance<T>::Leaky to avoid repeating T.fischman@chromium.org2012-01-231-2/+1
| | | | | | | | | | | | | Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to demonstrate the benefit at callsites. The real change is base/lazy_instance.h; everything else is example. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9192024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98
* windows: Fix a few things clang complains about.thakis@chromium.org2012-01-231-2/+2
| | | | | | | | | | | | No functionality change. BUG=82385 TEST=none Review URL: http://codereview.chromium.org/9200009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118725 0039d316-1c4b-4281-b951-d872f2087c98
* Provide windows notification of thread terminationjar@chromium.org2011-12-221-0/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Relanding revert 114954 with fix to be compatible wit new re-linking strategy. Better care was needed in bracketing the callbacks that were used, to be sure the new linker left all items located together.] This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notification callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notification on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=siggi bug=107974,103209 Review URL: http://codereview.chromium.org/9024015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115622 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure all the pointers in ProfilerFuncs are NULL if they don't get ↵tbreisacher@chromium.org2011-12-201-1/+7
| | | | | | | | | | | | | initialized. CID=102658 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9004026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115206 0039d316-1c4b-4281-b951-d872f2087c98
* Fix file leaks in a ETW test and a ScopedTempDir test.thestig@chromium.org2011-12-191-2/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8972009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115036 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114672 - Revert 114229 - Revert 113748 - Provide windows notifictaion ↵jar@chromium.org2011-12-191-125/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of thread termination [This revert (removing XP notification) is being mode because version .794.0 is crashing on startup (see bug 107974). This might be due to other optimizations, but until we understand, I'll revert, as it is better to leak, than to crash :-/ .] This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8836003 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8934006 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8964002 TBR=jar@chromium.org BUG=107974 Review URL: http://codereview.chromium.org/8995001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114954 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114229 - Revert 113748 - Provide windows notifictaion of thread ↵jar@chromium.org2011-12-151-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | termination [This change was shipping to dev/canary over the past weekend, and had no impact on buildability. I'm landing this yet again since the bug has a large impact on XP users, and we need it tested in the field if we are going to push it to M16 in the new year] This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8836003 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8934006 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8964002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114672 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113748 - Provide windows notifictaion of thread terminationjar@chromium.org2011-12-131-125/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Karen Grunberg requested a speculative revert, because we are currently unable to complete a link of the canary. This change is working fine on the Dev branch, and did not impact the link over the weekend, but for lack of other items, this change is being reverted] This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8836003 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8934006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114229 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #ifdef OFFICIAL_BUILD from scoped variant unittest, as the code is ↵jochen@chromium.org2011-12-101-3/+1
| | | | | | | | | | | | now always compiled BUG=none TEST=none Review URL: http://codereview.chromium.org/8890067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113944 0039d316-1c4b-4281-b951-d872f2087c98
* Provide windows notifictaion of thread terminationjar@chromium.org2011-12-091-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | This code should only have much of an impact on the XP platform, where thread teardown notification are not currently made. Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8836003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113748 0039d316-1c4b-4281-b951-d872f2087c98
* Windows-native sampling profiler wrapper class.siggi@chromium.org2011-12-073-0/+423
| | | | | | Review URL: http://codereview.chromium.org/8803022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113473 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113321 (speculative revert for http://crbug.com/106657 and a few ↵thakis@chromium.org2011-12-071-131/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | other problems) - Provide windows notifictaion of thread termination Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8550009 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/8839001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113342 0039d316-1c4b-4281-b951-d872f2087c98
* Provide windows notifictaion of thread terminationjar@chromium.org2011-12-071-0/+131
| | | | | | | | | | | | | | | | | | | | Provide an automatic fallback scan of the linker list of notifcation callbacks via DllMain. This fallback is ONLY used if there are no notifications coming via the linker list. This allows all existing code to continue working as it does today, and provides thread teardown notifcatino on XP even though we use the LoadLibrary call. It is a minimal change, suitable for pushing to other channels (beta? stable?). r=cpu BUG=103209 Review URL: http://codereview.chromium.org/8550009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113321 0039d316-1c4b-4281-b951-d872f2087c98
* Improve support for multiselect list box accessibility on Windows.dmazzoni@chromium.org2011-12-036-0/+387
| | | | | | | | | | | | | | Exposes several new states and attributes and fires new notifications when the selection changes. Adds general-purpose implementations of IUnknown and IEnumVARIANT to base/win/, which will be used in the future as we remote ATL from accessibility code. BUG=5027,98984 TEST=manual testing with JAWS and NVDA Review URL: http://codereview.chromium.org/8588036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112870 0039d316-1c4b-4281-b951-d872f2087c98
* Remove several more custom Task implementations from base/dcheng@chromium.org2011-11-292-72/+49
| | | | | | | | | | | BUG=none TEST=trybots Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111865 Review URL: http://codereview.chromium.org/8702016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111879 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111865 - Remove several more custom Task implementations from base/dcheng@chromium.org2011-11-292-40/+70
| | | | | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8702016 TBR=dcheng@chromium.org Review URL: http://codereview.chromium.org/8729020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111868 0039d316-1c4b-4281-b951-d872f2087c98
* Remove several more custom Task implementations from base/dcheng@chromium.org2011-11-292-70/+40
| | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8702016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111865 0039d316-1c4b-4281-b951-d872f2087c98
* Replace most LOG/CHECK statements with DLOG/DCHECK statements in base.brettw@chromium.org2011-10-261-1/+1
| | | | | | | | | | | [ Reland of 107042 http://codereview.chromium.org/8368009 ] I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Review URL: http://codereview.chromium.org/8341026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107434 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 107042 - Replace most LOG/CHECK statements with DLOG/DCHECK ↵brettw@chromium.org2011-10-251-1/+1
| | | | | | | | | | | | | | statements in base. I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Review URL: http://codereview.chromium.org/8368009 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/8351025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107051 0039d316-1c4b-4281-b951-d872f2087c98
* Replace most LOG/CHECK statements with DLOG/DCHECK statements in base.brettw@chromium.org2011-10-251-1/+1
| | | | | | | | | I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Review URL: http://codereview.chromium.org/8368009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107042 0039d316-1c4b-4281-b951-d872f2087c98
* base/win: Add documentation to RegKey::Read/Write functions.tfarina@chromium.org2011-10-232-56/+83
| | | | | | | | R=maruel@chromium.org,willchan@chromium.org,grt@chromium.org Review URL: http://codereview.chromium.org/8344004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106869 0039d316-1c4b-4281-b951-d872f2087c98
* Support grouping taskbar icons for panels with regular taskbar icon for ↵jianli@chromium.org2011-10-212-10/+23
| | | | | | | | | | | | | Chromium on Windows 7. Per discussion, we do not want to use different taskbar icon for each panel since they're now managed altogether. We also need to set its icon path so that the taskbar icon will not be changed once all chromium tabbed windows are closed. BUG=none TEST=Manual test by launching panels, closing tabbed window and verifying taskbar icon for panels are grouped together with chrome Review URL: http://codereview.chromium.org/8366026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106790 0039d316-1c4b-4281-b951-d872f2087c98
* Move ScopedCoMem to base/win. This is to allow the class to be used from ↵tommi@chromium.org2011-10-212-3/+88
| | | | | | | | | folders that aren't allowed to depend on chrome/common (and besides, ScopedCoMem belongs in base/win anyway). I'm also adding a DCHECK to ScopedComInitializer that checks if the construction thread is the same as the destruction thread. The reason for this is that I've noticed cases where an instance is created on the heap (as opposed to the usual stack usecase) which could leave the door open to incorrect COM uninitialization. Review URL: http://codereview.chromium.org/8354035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106687 0039d316-1c4b-4281-b951-d872f2087c98
* base/win: small improvement to RegKey API.tfarina@chromium.org2011-10-183-38/+45
| | | | | | | | | | | | - Rename ValueExists() to HasValue(). - Rename ValueCount() to GetValueCount(). - Rename ReadName() to GetValueNameAt(). R=maruel@chromium.org,willchan@chromium.org Review URL: http://codereview.chromium.org/8337006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106074 0039d316-1c4b-4281-b951-d872f2087c98
* Support MTA as well in the scoped COM initializer.tommi@chromium.org2011-10-171-1/+16
| | | | | | | BUG=none Review URL: http://codereview.chromium.org/8275030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105811 0039d316-1c4b-4281-b951-d872f2087c98
* * Rename ScopedHDC to ScopedCreateDCyosin@chromium.org2011-10-071-8/+8
| | | | | | | | | | * Use ScopedSelectObject for changed files BUG=99139 TEST=no user visible change Review URL: http://codereview.chromium.org/8139022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104441 0039d316-1c4b-4281-b951-d872f2087c98
* 1 Add ScopedGetDC and ScopedSelectObjectyosin@chromium.org2011-10-042-2/+73
| | | | | | | | | | | | | | | | | | | | | | * To mark@, sky@ ** base/win/scoped_hdc.h ** base/win/scoped_select_object.h 2 Fix leak in printing * To kmadhusu@ ** Play object creation command in metafile once ** Fix trivial leaks 3 Fix leak in SKIA * To twiz@ ** Fix font leak BUG=98523 TEST=Manual on Win7 Review URL: http://codereview.chromium.org/8084018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103852 0039d316-1c4b-4281-b951-d872f2087c98
* Update Windows version macros to Win 7jschuh@chromium.org2011-09-262-3/+7
| | | | | | | BUG=92941 Review URL: http://codereview.chromium.org/8004004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102735 0039d316-1c4b-4281-b951-d872f2087c98
* Disables code for making sure window to attach to is visible onsky@chromium.org2011-09-202-4/+17
| | | | | | | | | | | | win8. This is temporary until I find a better way to go about this. BUG=96646 TEST=make sure you can attach tabs on win8. R=brettw@chromium.org,cpu@chromium.org,ben@chromium.org Review URL: http://codereview.chromium.org/7918035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101912 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify chrome_exe_main_*.cc, moving as much of the code out as possible. ↵jam@chromium.org2011-08-312-5/+16
| | | | | | | | This is in preparation for moving the code in ChromeMain (and associated platform files) to a common place that can be used by both chrome and other embedders of content (i.e. content_shell). Included is a change to make the sandbox code not need an AtExitManager. This is necessary because content_shell would be just one exe, and we'd need to initialize the sandbox before calling ChromeMain, which is what would creat AtExitManager.I removed the code that printed the tcmalloc stacks in the OOM handler (i.e. r33993) under Windows. The issue is I wanted to move the OOM handling code to base to match the other platforms (in a long string of changes to make the startup code more sane, so I can share it with a browser built over content). When I tried moving the tcmalloc code to base, then I ran into a bunch of linker errors because a bunch of targets that depend on base don't depend on allocator. When I tried to add that to base, I ran into strange gyp errors (see patchset 2). I asked Jim/Eric and they said they don't use this data from dumps, and that most of the OOM minimdumps are in v8 heap anyways. When James get back, if he still uses this I can figure out how to put this back.BUG=90445 Review URL: http://codereview.chromium.org/7810005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99032 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some views depenencies from RenderWidgetHostViewWin.jam@chromium.org2011-08-261-0/+8
| | | | | | Review URL: http://codereview.chromium.org/7753021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98431 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/resource_util.* into base/win/ since it's windows specific.tony@chromium.org2011-08-252-0/+68
| | | | | | Review URL: http://codereview.chromium.org/7698005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98337 0039d316-1c4b-4281-b951-d872f2087c98