| OLD | NEW |
| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 } | 392 } |
| 393 policy { | 393 policy { |
| 394 cookies_allowed: true | 394 cookies_allowed: true |
| 395 cookies_store: "user" | 395 cookies_store: "user" |
| 396 setting: | 396 setting: |
| 397 "This feature cannot be disabled, but it is only activated if " | 397 "This feature cannot be disabled, but it is only activated if " |
| 398 "extensions are installed." | 398 "extensions are installed." |
| 399 chrome_policy { | 399 chrome_policy { |
| 400 ExtensionInstallBlacklist { | 400 ExtensionInstallBlacklist { |
| 401 policy_options {mode: MANDATORY} | 401 policy_options {mode: MANDATORY} |
| 402 ExtensionInstallBlacklist: '*' | 402 ExtensionInstallBlacklist: { |
| 403 entries: '*' |
| 404 } |
| 403 } | 405 } |
| 404 } | 406 } |
| 405 })"); | 407 })"); |
| 406 url_fetcher_ = net::URLFetcher::Create(GetBackendUrl(), net::URLFetcher::POST, | 408 url_fetcher_ = net::URLFetcher::Create(GetBackendUrl(), net::URLFetcher::POST, |
| 407 delegate_.get(), traffic_annotation); | 409 delegate_.get(), traffic_annotation); |
| 408 url_fetcher_->SetRequestContext(context_getter_); | 410 url_fetcher_->SetRequestContext(context_getter_); |
| 409 | 411 |
| 410 // The request protocol is JSON of the form: | 412 // The request protocol is JSON of the form: |
| 411 // { | 413 // { |
| 412 // "protocol_version": "1", | 414 // "protocol_version": "1", |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 if (!verified) | 537 if (!verified) |
| 536 result.reset(); | 538 result.reset(); |
| 537 } | 539 } |
| 538 | 540 |
| 539 if (!callback_.is_null()) | 541 if (!callback_.is_null()) |
| 540 callback_.Run(std::move(result)); | 542 callback_.Run(std::move(result)); |
| 541 } | 543 } |
| 542 | 544 |
| 543 | 545 |
| 544 } // namespace extensions | 546 } // namespace extensions |
| OLD | NEW |