diff options
author | marq <marq@chromium.org> | 2015-10-22 11:56:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-22 18:57:51 +0000 |
commit | 3f28f31db31e6e79c07d4fe76130ff4ee7e3b652 (patch) | |
tree | 64921e12351ac5aaea0bf5fd0ba28798c35b562c /ios | |
parent | 3e345524dcd8570438433c17e2b6f28ec530058d (diff) | |
download | chromium_src-3f28f31db31e6e79c07d4fe76130ff4ee7e3b652.zip chromium_src-3f28f31db31e6e79c07d4fe76130ff4ee7e3b652.tar.gz chromium_src-3f28f31db31e6e79c07d4fe76130ff4ee7e3b652.tar.bz2 |
Clean up TODO(marq) in upstream code.
Removed obsolete TODOs
Replaced remaining items with bugs.
BUG=546140
Review URL: https://codereview.chromium.org/1417293002
Cr-Commit-Position: refs/heads/master@{#355591}
Diffstat (limited to 'ios')
-rw-r--r-- | ios/net/clients/crn_forwarding_network_client_factory.h | 4 | ||||
-rw-r--r-- | ios/net/clients/crn_network_client_protocol.h | 1 | ||||
-rw-r--r-- | ios/web/navigation/navigation_manager_impl.h | 7 | ||||
-rw-r--r-- | ios/web/net/clients/crw_passkit_network_client_unittest.mm | 3 | ||||
-rw-r--r-- | ios/web/net/request_tracker_impl.mm | 3 | ||||
-rw-r--r-- | ios/web/web_state/ui/crw_static_file_web_view.h | 3 | ||||
-rw-r--r-- | ios/web/web_state/web_state_impl.h | 4 |
7 files changed, 4 insertions, 21 deletions
diff --git a/ios/net/clients/crn_forwarding_network_client_factory.h b/ios/net/clients/crn_forwarding_network_client_factory.h index 4a6ff47..06b0602 100644 --- a/ios/net/clients/crn_forwarding_network_client_factory.h +++ b/ios/net/clients/crn_forwarding_network_client_factory.h @@ -26,10 +26,6 @@ class URLRequest; // The expectation is that subclasses of this class will not be derived from; // if this becomes necessary, the unit tests for this class should be updated. -// TODO(marq): Investigate possible less bloated interfaces for this, where (for -// example) all clients are added to each request, and then the clients opt-out -// during the existing CRNNetworkClientProtocol calls. - // Return a client to handle any request. // Factories should implement this method only if their clients need to be able // to handle didFailWithError: calls that might originate before the native diff --git a/ios/net/clients/crn_network_client_protocol.h b/ios/net/clients/crn_network_client_protocol.h index aebd155..d000789 100644 --- a/ios/net/clients/crn_network_client_protocol.h +++ b/ios/net/clients/crn_network_client_protocol.h @@ -44,7 +44,6 @@ typedef base::Callback<void(bool auth_ok, // Corresponds to |-URLProtocol:didReceiveResponse:cacheStoragePolicy|. - (void)didReceiveResponse:(NSURLResponse*)response; // Corresponds to |-URLProtocol:wasRedirectedToRequest:redirectResponse|. -// TODO(marq): make |nativeRequest| a const ref. - (void)wasRedirectedToRequest:(NSURLRequest*)request nativeRequest:(net::URLRequest*)nativeRequest redirectResponse:(NSURLResponse*)redirectResponse; diff --git a/ios/web/navigation/navigation_manager_impl.h b/ios/web/navigation/navigation_manager_impl.h index ef09e52..ea5104b 100644 --- a/ios/web/navigation/navigation_manager_impl.h +++ b/ios/web/navigation/navigation_manager_impl.h @@ -90,14 +90,13 @@ class NavigationManagerImpl : public NavigationManager { // Convenience accessors to get the underlying NavigationItems from the // SessionEntries returned from |session_controller_|'s -lastUserEntry and // -previousEntry methods. - // TODO(marq):Evaluate the long-term utility of these methods. + // TODO(crbug.com/546365): Remove these methods. NavigationItem* GetLastUserItem() const; NavigationItem* GetPreviousItem() const; // Temporary method. Returns a vector of NavigationItems corresponding to // the SessionEntries of the uderlying CRWSessionController. - // TOOD(marq): Remove this method and unfork its caller, - // TabRestoreServiceHelper::PopulateTab + // TODO(crbug.com/546365): Remove this method. std::vector<NavigationItem*> GetItems(); // NavigationManager: @@ -126,8 +125,6 @@ class NavigationManagerImpl : public NavigationManager { // Copy state from |navigation_manager|, including a copy of that object's // CRWSessionController. - // TODO(marq): This doesn't deep-copy the SessionEntries in the - // CRWSessionController. void CopyState(NavigationManagerImpl* navigation_manager); private: // The primary delegate for this manager. diff --git a/ios/web/net/clients/crw_passkit_network_client_unittest.mm b/ios/web/net/clients/crw_passkit_network_client_unittest.mm index ea71b63..0160b82 100644 --- a/ios/web/net/clients/crw_passkit_network_client_unittest.mm +++ b/ios/web/net/clients/crw_passkit_network_client_unittest.mm @@ -34,8 +34,7 @@ class CRWPassKitNetworkClientTest : public testing::Test { niceMockForProtocol:@protocol(CRWPassKitDelegate)] retain]); // The request tracker needs to be set up with a unique tab id. - // TODO(marq): This can just be a mock or stub; it doesn't need to be a full - // RT instance. + static int gcount = 0; request_group_id_.reset( [[NSString stringWithFormat:@"passkittest%d", gcount++] retain]); diff --git a/ios/web/net/request_tracker_impl.mm b/ios/web/net/request_tracker_impl.mm index 13ec603..c96930b2 100644 --- a/ios/web/net/request_tracker_impl.mm +++ b/ios/web/net/request_tracker_impl.mm @@ -664,7 +664,6 @@ void RequestTrackerImpl::ErrorCallback(CRWSSLCarrier* carrier, bool allow) { #pragma mark Client utility methods. -// TODO(marq): Convert all internal task-posting to use these. void RequestTrackerImpl::PostUITaskIfOpen(const base::Closure& task) { PostTask(task, web::WebThread::UI); } @@ -766,8 +765,6 @@ void RequestTrackerImpl::Destruct() { } #pragma mark Other private methods -// TODO(marq): Reorder method implementations to match header and add grouping -// marks/comments. void RequestTrackerImpl::Notify() { DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); diff --git a/ios/web/web_state/ui/crw_static_file_web_view.h b/ios/web/web_state/ui/crw_static_file_web_view.h index 1b7e54d..ba0a207 100644 --- a/ios/web/web_state/ui/crw_static_file_web_view.h +++ b/ios/web/web_state/ui/crw_static_file_web_view.h @@ -26,9 +26,6 @@ class BrowserState; // Returns whether the request should be allowed for rendering into a // special UIWebView that allows static file content. -// TODO(marq): Since this is only used to inject a FileRequestVerfier into -// HttpProtocolHandler, instead make this a method that returns a block of -// that type. + (BOOL)isStaticFileRequest:(NSURLRequest*)request; @end diff --git a/ios/web/web_state/web_state_impl.h b/ios/web/web_state/web_state_impl.h index dfdee5d..3abaee3 100644 --- a/ios/web/web_state/web_state_impl.h +++ b/ios/web/web_state/web_state_impl.h @@ -71,9 +71,7 @@ class WebStateImpl : public WebState, public NavigationManagerDelegate { // controller, or facade set, but which otherwise has the same state variables // as the calling object (including copies of the NavigationManager and its // attendant CRWSessionController). - // TODO(marq): Revisit this function and the ownership model described above; - // too this depends on and interacts directly with above-the-web-level - // information. + // TODO(crbug.com/546377): Clean up this method. WebStateImpl* CopyForSessionWindow(); // Notifies the observers that a provisional navigation has started. |