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

Side by Side Diff: chrome/browser/extensions/install_signer.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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
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/install_signer.h" 5 #include "chrome/browser/extensions/install_signer.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 callback_.Run(); 280 callback_.Run();
281 } 281 }
282 282
283 private: 283 private:
284 base::Closure callback_; 284 base::Closure callback_;
285 DISALLOW_COPY_AND_ASSIGN(FetcherDelegate); 285 DISALLOW_COPY_AND_ASSIGN(FetcherDelegate);
286 }; 286 };
287 287
288 // static 288 // static
289 ExtensionIdSet InstallSigner::GetForcedNotFromWebstore() { 289 ExtensionIdSet InstallSigner::GetForcedNotFromWebstore() {
290 std::string value = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 290 std::string value =
291 switches::kExtensionsNotWebstore); 291 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
292 switches::kExtensionsNotWebstore);
292 if (value.empty()) 293 if (value.empty())
293 return ExtensionIdSet(); 294 return ExtensionIdSet();
294 295
295 std::vector<std::string> ids; 296 std::vector<std::string> ids;
296 base::SplitString(value, ',', &ids); 297 base::SplitString(value, ',', &ids);
297 return ExtensionIdSet(ids.begin(), ids.end()); 298 return ExtensionIdSet(ids.begin(), ids.end());
298 } 299 }
299 300
300 namespace { 301 namespace {
301 302
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 if (!verified) 501 if (!verified)
501 result.reset(); 502 result.reset();
502 } 503 }
503 504
504 if (!callback_.is_null()) 505 if (!callback_.is_null())
505 callback_.Run(result.Pass()); 506 callback_.Run(result.Pass());
506 } 507 }
507 508
508 509
509 } // namespace extensions 510 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/external_provider_impl_unittest.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698