<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>LICENSE - chromium/src - Git at Google</title>

  <link rel="icon" href="/+static/favicon.ico" sizes="any">
  <link rel="icon" type="image/svg+xml" href="/+static/favicon.svg">
  <link rel="icon" type="image/png" sizes="32x32" href="/+static/favicon-32x32.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/+static/favicon-16x16.png">
  <link rel="apple-touch-icon" sizes="180x180" href="/+static/apple-touch-icon.png">
  <link rel="stylesheet" href="/+static/base.css" type="text/css">
  
    <link rel="stylesheet" href="/+static/prettify/prettify.css" type="text/css">
  
  
    
    
      <!-- default customHeadTagPart -->
    
  
  
    <script nonce="rMfbMLpXT_Uf2bl728inDA">// Copyright (C) 2026 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

(function() {
  try {
    let t = localStorage.getItem('gitiles-theme');
    if (!t) {
      const m = document.cookie.match(/(?:^|; )gitiles-theme=([^;]*)/);
      if (m) {
        t = decodeURIComponent(m[1]);
      }
    }
    if (t === 'dark' || t === 'light') {
      document.documentElement.setAttribute('data-theme', t);
    }
  } catch (e) {}
})();
</script>
  
</head>
<body class="Site">
  <header class="Site-header">
    <div class="Header">
      
    
      
    
      <style>
        .Header-image--dark {
          display: none;
        }
        html[data-theme="dark"] .Header-image--light {
          display: none;
        }
        html[data-theme="dark"] .Header-image--dark {
          display: inline-block;
        }
        @media (prefers-color-scheme: dark) {
          :root:not([data-theme="light"]) .Header-image--light {
            display: none;
          }
          :root:not([data-theme="light"]) .Header-image--dark {
            display: inline-block;
          }
        }
      </style>
      <a class="Header-image" href="/">
        <img class="Header-image--light"
             src="//www.gstatic.com/images/branding/lockups/2x/lockup_git_color_108x24dp.png"
             width="108" height="24"
             alt="Google Git">
        <img class="Header-image--dark"
             src="//www.gstatic.com/images/branding/lockups/2x/lockup_git_light_color_108x24dp.png"
             width="108" height="24"
             alt="Google Git">
      </a>
    
    
  
    
    
  

      <div class="Header-menu">
        
          <a class="Header-menuItem" href="https://accounts.google.com/AccountChooser?faa=1&amp;continue=https://chromium.googlesource.com/login/chromium/src/%2B/HEAD/LICENSE">Sign in</a>
          
        
        
    <button class="Header-menuItem Header-themeToggle" id="gitiles-theme-toggle" type="button" title="Toggle theme (Auto / Dark / Light)" aria-label="Toggle theme">
      <span class="Header-themeIcon" aria-hidden="true">&#9681;</span>
      <span class="Header-themeLabel">Theme</span>
    </button>
    <script nonce="rMfbMLpXT_Uf2bl728inDA">// Copyright (C) 2026 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

(function() {
  function getTheme() {
    try {
      const t = localStorage.getItem('gitiles-theme');
      if (t) {
        return t;
      }
    } catch (e) {}
    try {
      const m = document.cookie.match(/(?:^|; )gitiles-theme=([^;]*)/);
      if (m) {
        return decodeURIComponent(m[1]);
      }
    } catch (e) {}
    return document.documentElement.getAttribute('data-theme') || 'auto';
  }

  function applyTheme(theme) {
    if (theme === 'dark' || theme === 'light') {
      document.documentElement.setAttribute('data-theme', theme);
    } else {
      document.documentElement.removeAttribute('data-theme');
    }
  }

  function updateButton(btn, theme) {
    const icon = btn.querySelector('.Header-themeIcon');
    const label = btn.querySelector('.Header-themeLabel');
    if (theme === 'dark') {
      if (icon) {
        icon.textContent = '\u263E';
      }
      if (label) {
        label.textContent = 'Dark';
      }
      btn.title = 'Theme: Dark (click to switch to Light)';
    } else if (theme === 'light') {
      if (icon) {
        icon.textContent = '\u2600';
      }
      if (label) {
        label.textContent = 'Light';
      }
      btn.title = 'Theme: Light (click to switch to Auto)';
    } else {
      if (icon) {
        icon.textContent = '\u25D1';
      }
      if (label) {
        label.textContent = 'Auto';
      }
      btn.title = 'Theme: Auto (click to switch to Dark)';
    }
    btn.setAttribute('aria-label', btn.title);
  }

  function initToggle() {
    const btn = document.getElementById('gitiles-theme-toggle');
    if (!btn) {
      return;
    }
    const current = getTheme();
    updateButton(btn, current);
    btn.onclick = function() {
      const cur = getTheme();
      const next = (cur === 'auto') ? 'dark' : ((cur === 'dark') ? 'light' : 'auto');
      applyTheme(next);
      try {
        localStorage.setItem('gitiles-theme', next);
      } catch (e) {}
      try {
        document.cookie = 'gitiles-theme=' + encodeURIComponent(next) + ';path=/;max-age=31536000;SameSite=Lax';
      } catch (e) {}
      updateButton(btn, next);
    };
  }

  if (document.readyState === 'loading') {
    document.addEventListener('DOMContentLoaded', initToggle);
  } else {
    initToggle();
  }
})();
</script>
  
      </div>
    </div>
  </header>
  <div class="Site-content">
    <div class="Container">
      
    <div class="Breadcrumbs"><a class="Breadcrumbs-crumb" href="/?format=HTML">chromium</a><span class="Breadcrumbs-sep">/</span><a class="Breadcrumbs-crumb" href="/chromium/">chromium</a><span class="Breadcrumbs-sep">/</span><a class="Breadcrumbs-crumb" href="/chromium/src/">src</a><span class="Breadcrumbs-sep">/</span><a class="Breadcrumbs-crumb" href="/chromium/src/+/HEAD">HEAD</a><span class="Breadcrumbs-sep">/</span><a class="Breadcrumbs-crumb" href="/chromium/src/+/HEAD/">.</a><span class="Breadcrumbs-sep">/</span><span class="Breadcrumbs-crumb">LICENSE</span></div>
  
      
      
      
    <div class="u-sha1 u-monospace BlobSha1">blob: 2249a28657f86c645f8978b75babc1bd52aca318 [<a href="/chromium/src/+/HEAD/LICENSE">file</a>]</div>
    
      
        <table class="FileContents">
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="1"></td>
            <td class="FileContents-lineContents" id="1"><span class="com">// Copyright 2015 The Chromium Authors</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="2"></td>
            <td class="FileContents-lineContents" id="2"><span class="com">//</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="3"></td>
            <td class="FileContents-lineContents" id="3"><span class="com">// Redistribution and use in source and binary forms, with or without</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="4"></td>
            <td class="FileContents-lineContents" id="4"><span class="com">// modification, are permitted provided that the following conditions are</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="5"></td>
            <td class="FileContents-lineContents" id="5"><span class="com">// met:</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="6"></td>
            <td class="FileContents-lineContents" id="6"><span class="com">//</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="7"></td>
            <td class="FileContents-lineContents" id="7"><span class="com">//    * Redistributions of source code must retain the above copyright</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="8"></td>
            <td class="FileContents-lineContents" id="8"><span class="com">// notice, this list of conditions and the following disclaimer.</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="9"></td>
            <td class="FileContents-lineContents" id="9"><span class="com">//    * Redistributions in binary form must reproduce the above</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="10"></td>
            <td class="FileContents-lineContents" id="10"><span class="com">// copyright notice, this list of conditions and the following disclaimer</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="11"></td>
            <td class="FileContents-lineContents" id="11"><span class="com">// in the documentation and/or other materials provided with the</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="12"></td>
            <td class="FileContents-lineContents" id="12"><span class="com">// distribution.</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="13"></td>
            <td class="FileContents-lineContents" id="13"><span class="com">//    * Neither the name of Google LLC nor the names of its</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="14"></td>
            <td class="FileContents-lineContents" id="14"><span class="com">// contributors may be used to endorse or promote products derived from</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="15"></td>
            <td class="FileContents-lineContents" id="15"><span class="com">// this software without specific prior written permission.</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="16"></td>
            <td class="FileContents-lineContents" id="16"><span class="com">//</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="17"></td>
            <td class="FileContents-lineContents" id="17"><span class="com">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="18"></td>
            <td class="FileContents-lineContents" id="18"><span class="com">// &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="19"></td>
            <td class="FileContents-lineContents" id="19"><span class="com">// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="20"></td>
            <td class="FileContents-lineContents" id="20"><span class="com">// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="21"></td>
            <td class="FileContents-lineContents" id="21"><span class="com">// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="22"></td>
            <td class="FileContents-lineContents" id="22"><span class="com">// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="23"></td>
            <td class="FileContents-lineContents" id="23"><span class="com">// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="24"></td>
            <td class="FileContents-lineContents" id="24"><span class="com">// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="25"></td>
            <td class="FileContents-lineContents" id="25"><span class="com">// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="26"></td>
            <td class="FileContents-lineContents" id="26"><span class="com">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></td>
          </tr>
          <tr class="u-pre u-monospace FileContents-line">
            <td class="u-lineNum u-noSelect FileContents-lineNum" data-line-number="27"></td>
            <td class="FileContents-lineContents" id="27"><span class="com">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></td>
          </tr>
        </table>
        <script nonce="rMfbMLpXT_Uf2bl728inDA">
          for (let lineNumEl of document.querySelectorAll('td.u-lineNum')) {
            lineNumEl.onclick = () => {
              window.location.hash =
                  `#${lineNumEl.getAttribute('data-line-number')}`;
            };
          }
        </script>
      
      
    
    
  
      
      
    </div>
  </div>
  
    
      <footer class="Site-footer">
    <div class="Footer">
      <span class="Footer-poweredBy">Powered by <a href="https://gerrit.googlesource.com/gitiles/">Gitiles</a>| <a href="https://policies.google.com/privacy">Privacy</a>| <a href="https://policies.google.com/terms">Terms</a></span>
      <span class="Footer-formats"><a class="u-monospace Footer-formatsItem" href="?format=TEXT">txt</a> <a class="u-monospace Footer-formatsItem" href="?format=JSON">json</a></span>
    </div>
    
  </footer>
    
    
  

  
</body>
</html>
