Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/extensions/signin/gaia_auth_extension_loader.cc

Issue 418043002: Add test for showing confirmation dialog for unsecure signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix isolate dependency Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h" 5 #include "chrome/browser/extensions/signin/gaia_auth_extension_loader.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (partition) { 69 if (partition) {
70 partition->ClearData( 70 partition->ClearData(
71 content::StoragePartition::REMOVE_DATA_MASK_ALL, 71 content::StoragePartition::REMOVE_DATA_MASK_ALL,
72 content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL, 72 content::StoragePartition::QUOTA_MANAGED_STORAGE_MASK_ALL,
73 GURL(), 73 GURL(),
74 content::StoragePartition::OriginMatcherFunction(), 74 content::StoragePartition::OriginMatcherFunction(),
75 base::Time(), 75 base::Time(),
76 base::Time::Max(), 76 base::Time::Max(),
77 base::Bind(&base::DoNothing)); 77 base::Bind(&base::DoNothing));
78 } 78 }
79 79 GetComponentLoader(context)->Remove(extensions::kGaiaAuthExtensionId);
80 const char kGaiaAuthId[] = "mfffpogegjflfpflabcdkioaeobkgjik";
81 GetComponentLoader(context)->Remove(kGaiaAuthId);
82 } 80 }
83 81
84 } // namespace 82 } // namespace
85 83
86 namespace extensions { 84 namespace extensions {
87 85
88 GaiaAuthExtensionLoader::GaiaAuthExtensionLoader(BrowserContext* context) 86 GaiaAuthExtensionLoader::GaiaAuthExtensionLoader(BrowserContext* context)
89 : browser_context_(context), load_count_(0) {} 87 : browser_context_(context), load_count_(0) {}
90 88
91 GaiaAuthExtensionLoader::~GaiaAuthExtensionLoader() { 89 GaiaAuthExtensionLoader::~GaiaAuthExtensionLoader() {
(...skipping 28 matching lines...) Expand all
120 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory = 118 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader> > g_factory =
121 LAZY_INSTANCE_INITIALIZER; 119 LAZY_INSTANCE_INITIALIZER;
122 120
123 // static 121 // static
124 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>* 122 BrowserContextKeyedAPIFactory<GaiaAuthExtensionLoader>*
125 GaiaAuthExtensionLoader::GetFactoryInstance() { 123 GaiaAuthExtensionLoader::GetFactoryInstance() {
126 return g_factory.Pointer(); 124 return g_factory.Pointer();
127 } 125 }
128 126
129 } // namespace extensions 127 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/signin/gaia_auth_extension_loader.h ('k') | chrome/browser/resources/gaia_auth/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698