diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 19:34:39 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-01 19:34:39 +0000 |
commit | ecd9aa34054396f135981f369105af51dec02793 (patch) | |
tree | 4285b404d242c0eaede0c2794e9028d5c69cab27 /chrome_frame/utils.cc | |
parent | bbf2e8ddf65510e08b2a85a0cd4d64d7be357238 (diff) | |
download | chromium_src-ecd9aa34054396f135981f369105af51dec02793.zip chromium_src-ecd9aa34054396f135981f369105af51dec02793.tar.gz chromium_src-ecd9aa34054396f135981f369105af51dec02793.tar.bz2 |
Adding a little utility function to make logging guids easier
and a dlog to see when we decide that a request is a subframe request.
TEST=Unit test is provided.
BUG=none
Review URL: http://codereview.chromium.org/660289
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/utils.cc')
-rw-r--r-- | chrome_frame/utils.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome_frame/utils.cc b/chrome_frame/utils.cc index bd803bf..04bac77 100644 --- a/chrome_frame/utils.cc +++ b/chrome_frame/utils.cc @@ -828,6 +828,7 @@ bool IsSubFrameRequest(IUnknown* service_provider) { } } } else { + DLOG(INFO) << "IsSubFrameRequest - no IWebBrowser2"; is_sub_frame_request = true; } @@ -866,3 +867,8 @@ bool IsTopLevelWindow(HWND window) { return !parent || (parent == GetDesktopWindow()); } +std::wstring GuidToString(const GUID& guid) { + std::wstring ret; + ::StringFromGUID2(guid, WriteInto(&ret, 39), 39); + return ret; +} |