diff --git a/atom/browser/atom_access_token_store.cc b/atom/browser/atom_access_token_store.cc index a92112db82bf..aef54dfa0ebc 100644 --- a/atom/browser/atom_access_token_store.cc +++ b/atom/browser/atom_access_token_store.cc @@ -11,7 +11,7 @@ #include "atom/common/google_api_key.h" #include "base/environment.h" #include "content/public/browser/browser_thread.h" -#include "content/public/browser/geolocation_provider.h" +#include "device/geolocation/geolocation_provider.h" using content::BrowserThread; @@ -24,7 +24,7 @@ namespace internal { class TokenLoadingJob : public base::RefCountedThreadSafe { public: explicit TokenLoadingJob( - const content::AccessTokenStore::LoadAccessTokensCallback& callback) + const device::AccessTokenStore::LoadAccessTokensCallback& callback) : callback_(callback), request_context_getter_(nullptr) {} void Run(AtomBrowserContext* browser_context) { @@ -47,7 +47,7 @@ class TokenLoadingJob : public base::RefCountedThreadSafe { // Equivalent to access_token_map[kGeolocationProviderURL]. // Somehow base::string16 is causing compilation errors when used in a pair // of std::map on Linux, this can work around it. - content::AccessTokenStore::AccessTokenMap access_token_map; + device::AccessTokenStore::AccessTokenMap access_token_map; std::pair token_pair; token_pair.first = GURL(GOOGLEAPIS_ENDPOINT + api_key_); access_token_map.insert(token_pair); @@ -55,7 +55,7 @@ class TokenLoadingJob : public base::RefCountedThreadSafe { callback_.Run(access_token_map, request_context_getter_); } - content::AccessTokenStore::LoadAccessTokensCallback callback_; + device::AccessTokenStore::LoadAccessTokensCallback callback_; net::URLRequestContextGetter* request_context_getter_; std::string api_key_; }; @@ -64,7 +64,7 @@ class TokenLoadingJob : public base::RefCountedThreadSafe { AtomAccessTokenStore::AtomAccessTokenStore() { browser_context_ = AtomBrowserContext::From("", false); - content::GeolocationProvider::GetInstance()->UserDidOptIntoLocationServices(); + device::GeolocationProvider::GetInstance()->UserDidOptIntoLocationServices(); } AtomAccessTokenStore::~AtomAccessTokenStore() { diff --git a/atom/browser/atom_access_token_store.h b/atom/browser/atom_access_token_store.h index 4ebe1a0bc3da..07884e58d60a 100644 --- a/atom/browser/atom_access_token_store.h +++ b/atom/browser/atom_access_token_store.h @@ -5,7 +5,7 @@ #ifndef ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_ #define ATOM_BROWSER_ATOM_ACCESS_TOKEN_STORE_H_ -#include "content/public/browser/access_token_store.h" +#include "device/geolocation/access_token_store.h" namespace atom { @@ -15,12 +15,12 @@ namespace internal { class TokenLoadingJob; } -class AtomAccessTokenStore : public content::AccessTokenStore { +class AtomAccessTokenStore : public device::AccessTokenStore { public: AtomAccessTokenStore(); ~AtomAccessTokenStore(); - // content::AccessTokenStore: + // device::AccessTokenStore: void LoadAccessTokens( const LoadAccessTokensCallback& callback) override; void SaveAccessToken(const GURL& server_url, diff --git a/atom/browser/atom_security_state_model_client.cc b/atom/browser/atom_security_state_model_client.cc index 77a91bdec9b3..610d30ff014a 100644 --- a/atom/browser/atom_security_state_model_client.cc +++ b/atom/browser/atom_security_state_model_client.cc @@ -81,7 +81,7 @@ void AtomSecurityStateModelClient::GetVisibleSecurityState( return; } - state->initialized = true; + state->connection_info_initialized = true; state->url = entry->GetURL(); const content::SSLStatus& ssl = entry->GetSSL(); state->initial_security_level = diff --git a/electron.gyp b/electron.gyp index 7672f26eee1a..da563f3316d8 100644 --- a/electron.gyp +++ b/electron.gyp @@ -147,15 +147,15 @@ 'destination': '<(PRODUCT_DIR)', 'files': [ '<@(copied_libraries)', - '<(libchromiumcontent_dir)/locales', + # '<(libchromiumcontent_dir)/locales', '<(libchromiumcontent_dir)/libEGL.dll', '<(libchromiumcontent_dir)/libGLESv2.dll', '<(libchromiumcontent_dir)/icudtl.dat', - '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak', - '<(libchromiumcontent_dir)/content_resources_200_percent.pak', + # '<(libchromiumcontent_dir)/blink_image_resources_200_percent.pak', + # '<(libchromiumcontent_dir)/content_resources_200_percent.pak', '<(libchromiumcontent_dir)/content_shell.pak', - '<(libchromiumcontent_dir)/ui_resources_200_percent.pak', - '<(libchromiumcontent_dir)/views_resources_200_percent.pak', + # '<(libchromiumcontent_dir)/ui_resources_200_percent.pak', + # '<(libchromiumcontent_dir)/views_resources_200_percent.pak', '<(libchromiumcontent_dir)/natives_blob.bin', '<(libchromiumcontent_dir)/snapshot_blob.bin', 'external_binaries/d3dcompiler_47.dll',