Bug 57058 - Hookup the UIProcess WebIconDatabase to a WebCore::IconDatabase as its implementation
Summary: Hookup the UIProcess WebIconDatabase to a WebCore::IconDatabase as its implem...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords:
Depends on:
Blocks: 56425
  Show dependency treegraph
 
Reported: 2011-03-24 15:13 PDT by Brady Eidson
Modified: 2011-03-24 16:58 PDT (History)
1 user (show)

See Also:


Attachments
Patch v1 (20.21 KB, patch)
2011-03-24 15:18 PDT, Brady Eidson
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2011-03-24 15:13:12 PDT
Hookup the UIProcess WebIconDatabase to a WebCore::IconDatabase as its implementation
Comment 1 Brady Eidson 2011-03-24 15:18:54 PDT
Created attachment 86846 [details]
Patch v1
Comment 2 WebKit Review Bot 2011-03-24 15:22:31 PDT
Attachment 86846 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebKit2/UIProcess/WebContext.h:161:  The parameter name "path" adds no information, so it should be removed.  [readability/parameter_name] [5]
Source/WebKit2/UIProcess/WebIconDatabase.cpp:35:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 2 in 11 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Sam Weinig 2011-03-24 15:25:32 PDT
Comment on attachment 86846 [details]
Patch v1

View in context: https://bugs.webkit.org/attachment.cgi?id=86846&action=review

> Source/WebKit2/UIProcess/WebIconDatabase.cpp:62
> +        LOG_ERROR("Icon database is already open, can only have its path set once.");

This error log could be worded better.

> Source/WebKit2/UIProcess/WebIconDatabase.cpp:74
> +    if (!m_iconDatabaseImpl->open(WebCore::directoryName(path), WebCore::pathGetFileName(path))) {
> +        LOG_ERROR("Unable to open WebKit2 icon database on disk");
> +        m_iconDatabaseImpl.clear();
> +        WebCore::setGlobalIconDatabase(0);
> +    }
> +    WebCore::setGlobalIconDatabase(m_iconDatabaseImpl.get());

I think a using namespace WebCore; at the top would make this nicer.
Comment 4 Brady Eidson 2011-03-24 16:58:50 PDT
r81920